I normally don't do this - haven't got any traction on taroon list and I want to get a backup going.
I have an RHEL 3 server and it is serving some simple web stuff (horde/imp/etc.)
I have installed BrightStor ArcServe and I need it to also serve some web pages. The ArcServe runs on a different port but has it's own httpd.conf with the distribution.
The last time I did it, it was the only web pages I needed to serve on the system so it was easy enough to just replace the default /etc/httpd/conf/httpd.conf with the supplied httpd.conf from ArcServe
This time, I can't do that so I guess that I want to run another instance of httpd, with the alternate httpd.conf file which I can do by copying /etc/rc.d/init.d/httpd and altering the copy to use the ArcServe config file.
Is this the right way to handle this?
Craig
On 10/7/05, Craig White craigwhite@azapple.com wrote:
This time, I can't do that so I guess that I want to run another instance of httpd, with the alternate httpd.conf file which I can do by copying /etc/rc.d/init.d/httpd and altering the copy to use the ArcServe config file.
Is this the right way to handle this?
Seems reasonable to me. You know that you can use multiple config files for httpd right? The command line arguments to apache include -f /path/to/httpd.conf
Greg
On Fri, 2005-10-07 at 18:49 -0600, Greg Knaddison wrote:
On 10/7/05, Craig White craigwhite@azapple.com wrote:
This time, I can't do that so I guess that I want to run another instance of httpd, with the alternate httpd.conf file which I can do by copying /etc/rc.d/init.d/httpd and altering the copy to use the ArcServe config file.
Is this the right way to handle this?
Seems reasonable to me. You know that you can use multiple config files for httpd right? The command line arguments to apache include -f /path/to/httpd.conf
---- No - I didn't know that I could use multiple config files for httpd - my concept isn't working.
How do I do multiple config files? create /etc/sysconfig/httpd and put them both in there?
Craig
On Fri, 2005-10-07 at 18:58, Craig White wrote:
I have installed BrightStor ArcServe and I need it to also serve some web pages. The ArcServe runs on a different port but has it's own httpd.conf with the distribution.
The last time I did it, it was the only web pages I needed to serve on the system so it was easy enough to just replace the default /etc/httpd/conf/httpd.conf with the supplied httpd.conf from ArcServe
This time, I can't do that so I guess that I want to run another instance of httpd, with the alternate httpd.conf file which I can do by copying /etc/rc.d/init.d/httpd and altering the copy to use the ArcServe config file.
Is this the right way to handle this?
That will work, but it is unnecessarily drastic unless the httpd instance has to run under a different user id. Apache can be configured to handle many different virtual servers distinguished by IP address, port number, and/or hostname. If you don't need a different uid, the easy way is to add a DNS CNAME pointing to the other name, convert your existing site to a named virtual host, then add this and as many other names with corresponding server configurations as you need as additional named vhosts.
On Fri, 2005-10-07 at 20:40 -0500, Les Mikesell wrote:
On Fri, 2005-10-07 at 18:58, Craig White wrote:
I have installed BrightStor ArcServe and I need it to also serve some web pages. The ArcServe runs on a different port but has it's own httpd.conf with the distribution.
The last time I did it, it was the only web pages I needed to serve on the system so it was easy enough to just replace the default /etc/httpd/conf/httpd.conf with the supplied httpd.conf from ArcServe
This time, I can't do that so I guess that I want to run another instance of httpd, with the alternate httpd.conf file which I can do by copying /etc/rc.d/init.d/httpd and altering the copy to use the ArcServe config file.
Is this the right way to handle this?
That will work, but it is unnecessarily drastic unless the httpd instance has to run under a different user id. Apache can be configured to handle many different virtual servers distinguished by IP address, port number, and/or hostname. If you don't need a different uid, the easy way is to add a DNS CNAME pointing to the other name, convert your existing site to a named virtual host, then add this and as many other names with corresponding server configurations as you need as additional named vhosts.
---- It may be possible to run as a virtual server but it appears that I would have to do a bunch of mucking around since it is supposed to run under a different user id.
I am trying to figure out how to run multiple httpd.conf and haven't had much success either by creating /etc/sysconfig/httpd... # cat /etc/sysconfig/httpd # multiple configs OPTIONS="-f /etc/httpd/conf/httpd.conf \ -f /opt/CA/BrightStorARCserve/httpd/conf/httpd.conf"
or OPTIONS="-f /etc/httpd/conf/httpd.conf \ /opt/CA/BrightStorARCserve/httpd/conf/httpd.conf"
and I also tried cp /etc/rc.d/init.d/httpd /etc/rc.d/init.d/httpd-bab and changing pid and /var/lock/subsys and conf references but it won't launch
;-(
so I'm pretty much where I started
Craig
On Fri, 2005-10-07 at 22:13, Craig White wrote:
It may be possible to run as a virtual server but it appears that I would have to do a bunch of mucking around since it is supposed to run under a different user id.
If it all runs as a cgi-program you can make it setuid, but you are probably better off with 2 instances.
I am trying to figure out how to run multiple httpd.conf and haven't had much success either by creating /etc/sysconfig/httpd... # cat /etc/sysconfig/httpd # multiple configs OPTIONS="-f /etc/httpd/conf/httpd.conf \ -f /opt/CA/BrightStorARCserve/httpd/conf/httpd.conf"
or OPTIONS="-f /etc/httpd/conf/httpd.conf \ /opt/CA/BrightStorARCserve/httpd/conf/httpd.conf"
and I also tried cp /etc/rc.d/init.d/httpd /etc/rc.d/init.d/httpd-bab and changing pid and /var/lock/subsys and conf references but it won't launch
;-(
so I'm pretty much where I started
I think the last time I did that (years ago...) I ended up symlinking a new program name: ln -s /usr/bin/httpd /usr/bin/httpd-bab and changing the references inside the copied init script to use the other name, but I can't remember why now.
On Fri, 2005-10-07 at 22:36 -0500, Les Mikesell wrote:
On Fri, 2005-10-07 at 22:13, Craig White wrote:
It may be possible to run as a virtual server but it appears that I would have to do a bunch of mucking around since it is supposed to run under a different user id.
If it all runs as a cgi-program you can make it setuid, but you are probably better off with 2 instances.
I am trying to figure out how to run multiple httpd.conf and haven't had much success either by creating /etc/sysconfig/httpd... # cat /etc/sysconfig/httpd # multiple configs OPTIONS="-f /etc/httpd/conf/httpd.conf \ -f /opt/CA/BrightStorARCserve/httpd/conf/httpd.conf"
or OPTIONS="-f /etc/httpd/conf/httpd.conf \ /opt/CA/BrightStorARCserve/httpd/conf/httpd.conf"
and I also tried cp /etc/rc.d/init.d/httpd /etc/rc.d/init.d/httpd-bab and changing pid and /var/lock/subsys and conf references but it won't launch
;-(
so I'm pretty much where I started
I think the last time I did that (years ago...) I ended up symlinking a new program name: ln -s /usr/bin/httpd /usr/bin/httpd-bab and changing the references inside the copied init script to use the other name, but I can't remember why now.
--- OK - I got it running with different launchers /etc/rc.d/init.d/httpd /etc/rc.d/init.d/httpd-orig
and different sysconfig files - /var/lock/subsys - /var/run pid files
and both instances of httpd under different user names are running now.
Thanks
Craig