Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish for IIS changes to web.config location #173

Open
danroth27 opened this issue Apr 27, 2016 · 0 comments
Open

Publish for IIS changes to web.config location #173

danroth27 opened this issue Apr 27, 2016 · 0 comments

Comments

@danroth27
Copy link
Member

danroth27 commented Apr 27, 2016

The publish-iis tool will now generate web.config files inside the root of your output, not in the web root (wwwroot).

This means that IIS will now need to be configured to point to the root of your site instead of the web root like it has up-to-now for ASP.NET Core.

Simplified Old Layout

/root
    /wwwroot/ <-- IIS physical path
        site.css
        web.config
    myapp.dll

In this case IIS would be configured to use /root/wwwroot as the root of your web application.

Simplified New Layout

/root <-- IIS physical path
    /wwwroot/
        site.css
    myapp.dll
    web.config

In this case IIS would be configured to use /root as the root of your web application.

This is the same web.config location and pysical path you would have used in your ASP.NET 4.x applications. Moving the web.config file location to the root of the application enables publishing of muliple applications using Web Deploy.

Your applications static content will still need to go in the web root (wwwroot in these examples). The static files middleware is what serves static content in your application and it will still only serve from the web root regardless of the physical path configured in IIS.

Please use aspnet/IISIntegration#158 for discussion

@aspnet aspnet locked and limited conversation to collaborators Apr 27, 2016
@danroth27 danroth27 added this to the 1.0.0-rc2 milestone Apr 27, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant