如何在Windows上更改Apache的httpd.conf的位置?

编程入门 行业动态 更新时间:2024-10-27 06:34:16
本文介绍了如何在Windows上更改Apache的httpd.conf的位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在努力在Windows Server 2012上设置负载平衡群集,并且有一个共享驱动器,我想在其中存在Apache的配置文件.这样,LB的每个成员都可以加载完全相同的配置文件.如何独立于ServerRoot的位置更改配置文件的位置?

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?

推荐答案

使用-d参数启动Apache进程,并提供替代的ServerRoot作为参数,尽管我认为这是一个更好的主意.供您使用某种机制将文件本地同步到每个服务器.

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.

也请阅读 httpd.apache/docs/2.4/mod/core.html#mutex ,因为如果您是从网络文件系统运行的,建议您这样做.

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

如果只想指定主配置文件,则以-f参数和该配置文件的路径作为参数开始该过程.

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.

更多推荐

如何在Windows上更改Apache的httpd.conf的位置?

本文发布于:2023-07-16 04:03:39,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1117655.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:位置   如何在   Windows   Apache   httpd

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!