简体   繁体   English

我可以使用yum安装其他的Apache httpd服务器吗?

[英]Can I use yum to install an additional apache httpd server?

I'm using a plain apache server as a front-end and a mod-perl enabled apache server as a backend with mod_proxy. 我将普通的apache服务器用作前端,将启用了mod-perl的apache服务器用作具有mod_proxy的后端。

I'm in the process of moving to a new hosting company so I'm installing software. 我正在迁移到新的托管公司,因此我正在安装软件。 In the past I've built both of these from source but it would be easier to use yum to install so that they are easily updated. 过去,我都是从源代码构建这两个版本的,但是使用yum进行安装会更容易,以便轻松进行更新。 Is it possible to install 2 separate httpd servers with yum? 是否可以在yum上安装2个单独的httpd服务器? And if so how? 如果是这样怎么办?

I'm thinking that the solution might be to move the front-end to lighttpd or similar but I'd still like to know whether it is possible. 我在想解决方案可能是将前端移动到lighttpd或类似的设备,但我仍然想知道是否有可能。

I'm using Centos 7. 我正在使用Centos 7。

Seem to have it working now. 似乎现在可以正常工作了。 Hope this might help someone else. 希望这可以帮助其他人。

I now have one httpd with two different configuration files in /etc/httpd/conf/: httpd_docs.conf and httpd_perl.conf 我现在在/ etc / httpd / conf /中有一个带有两个不同配置文件的httpd:httpd_docs.conf和httpd_perl.conf

Set the PidFile to two different files at the top of the config files. 将PidFile设置为配置文件顶部的两个不同文件。

Copied the /etc/httpd/conf.modules.d to /etc/httpd/conf.modules.perl and updated the 'Include' in the two config files to point to the different directories and then deleted unnecessary files in each directory so that the httpd_docs instance does not use mod_perl and the httpd_perl instance does. 将/etc/httpd/conf.modules.d复制到/etc/httpd/conf.modules.perl,并更新两个配置文件中的“包含”以指向不同的目录,然后删除每个目录中不必要的文件,以便httpd_docs实例不使用mod_perl,而httpd_perl实例使用mod_perl。

Copied /etc/sysconfig/httpd to /etc/sysconfig/httpd_perl and edited each one to include an OPTIONS line 将/ etc / sysconfig / httpd复制到/ etc / sysconfig / httpd_perl,并编辑每个文件以包含OPTIONS行

OPTIONS="-d /etc/httpd -f conf/httpd_docs.conf"

and

OPTIONS="-d /etc/httpd -f conf/httpd_perl.conf"

Copied /usr/lib/systemd/system/httpd.service to /usr/lib/systemd/system/httpd_perl.service and edited to point to correct EnvironmentFile. 将/usr/lib/systemd/system/httpd.service复制到/usr/lib/systemd/system/httpd_perl.service,并进行编辑以指向正确的EnvironmentFile。

Used this question to help answer my own question https://serverfault.com/questions/31838/can-rhel-4-have-two-instances-of-apache-httpd-running-using-two-different-config 使用这个问题来回答我自己的问题https://serverfault.com/questions/31838/can-rhel-4-have-two-instances-of-apache-httpd-running-using-two-different-config

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

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