Skip to content
This repository was archived by the owner on Nov 1, 2018. It is now read-only.
This repository was archived by the owner on Nov 1, 2018. It is now read-only.

Head-check on moving web.config back to wwwroot #164

@guardrex

Description

@guardrex

@JunTaoLuo @tracher @moozzyk

[Opened outside of the discussion on the announcement so that I can link/find it easier.]

Coming off of Publish for IIS changes to web.config location (Announcements/#173) and concern over accidental renaming or moving of web.config that would leak sensitive files, may I get a head-check for those wishing to put web.config back into wwwroot?

  • Use .UseContentRoot("../") on WebHostBuilder
  • Use .UseContentRoot(Directory.GetParent(Directory.GetCurrentDirectory()).FullName)
  • Set processPath="..\my_app.exe" (self-contained) or arguments="..\my_app.dll" (portable)
  • Set stdoutLogFile="..\logs\stdout" (presuming logs is in the content root)
  • Move web.config to wwwroot
  • Point the IIS website physical path to wwwroot

Seems ok in testing. Is that correct or would that break something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions