how do I change the location of the httpd.conf for Apache on windows?

做~自己de王妃 提交于 2019-12-10 11:02:02

问题


I am working on setting up a load balancing cluster on windows server 2012 and have a shared drive where I want the configuration files for Apache to exist at. This way each member of the LB can load the exact same config files. How do I change where the config file is located independently of where the ServerRoot is?


回答1:


Start the Apache process with the -d parameter and give your alternative ServerRoot as an argument, though I'd imagine it would be a much better idea for you to use some mechanism to sync the files locally to each server.

Also read http://httpd.apache.org/docs/2.4/mod/core.html#mutex, as it's advised if you're running from a networked file system.

If you just want to specify the main config file, start the process with the -f parameter and the path to the config file as an argument.



来源:https://stackoverflow.com/questions/24328702/how-do-i-change-the-location-of-the-httpd-conf-for-apache-on-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!