简体   繁体   English

站点启动时更改IIS站点上的文件路径

[英]Changing file path on IIS site while the site is UP

While my site is running on IIS, I plan to change the Physical Path of the site. 当我的站点在IIS上运行时,我计划更改站点的物理路径。

Is it Okay to just change Physical Path while the site is running? 可以在网站运行时更改物理路径吗?

I wanted to not STOP the site, but to just keep it running. 我不想停止站点,而只是保持其运行。

Thanks! 谢谢!

It's ok and you can do so but notice that your web app would be restarted. 可以,您可以这样做,但是请注意,您的网络应用将重新启动。

It means that if your app is using inproc sessions, all session variables would be removed. 这意味着,如果您的应用程序正在使用内在会话,则所有会话变量都将被删除。 If you're using Sessions with State Server or SQL, then that's fine. 如果您使用带有状态服务器或SQL的会话,那很好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM