Deployment on iis #12512
Unanswered
mahdibarati
asked this question in
Help
Deployment on iis
#12512
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
H have A next.js React app and want to host in iis.
At first, run
Next build
. then copy .next folder.this is my web.config:
<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <directoryBrowse enabled="false" /> <defaultDocument> <files> <clear /> <add value="Default.aspx" /> <add value="Default.htm" /> <add value="index.htm" /> <add value="index.html" /> <add value="index.php" /> <add value="Default.asp" /> <add value="holding.php" /> </files> </defaultDocument> <!--<httpErrors errorMode="DetailedLocalOnly" existingResponse="Auto" />--> <httpErrors errorMode="Custom" defaultResponseMode="ExecuteURL"> <remove statusCode="500" subStatusCode="100" /> <remove statusCode="500" subStatusCode="-1" /> <remove statusCode="404" subStatusCode="-1" /> <error statusCode="404" path="/" responseMode="ExecuteURL" /> <error statusCode="500" prefixLanguageFilePath="" path="/error_500.asp" responseMode="ExecuteURL" /> <error statusCode="500" subStatusCode="100" path="/error_500.asp" responseMode="ExecuteURL" /> </httpErrors> </system.webServer> </configuration>
but when open it, got nothing. what should i do?
Beta Was this translation helpful? Give feedback.
All reactions