Re: Two instances of chrooted OBSD Apache?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: misc <misc@...>
Date: Wednesday, June 13, 2007 - 6:38 am

Matt wrote:
...

No, that would be a painful way to do things...and it wouldn't fix
your problem, as both instances would bind to the IP, port and config
files by default.

Just did this yesterday myself, in fact, so I'm suddenly an "expert" :)
(i.e., wait a bit for people to tell you how wrong I am!)

httpd can be run multiple times with multiple configs, just configure
it to use different ports/IPs, and run each with a different config.

Copy your httpd.conf file to another name.
Configure it as you wish, changing the port/IP address as appropriate.
run it as "httpd -f /var/www/conf/2ndhttpd.conf". ta-da!

I used this to run a second copy of httpd which was running as a user
which DID have write privileges to the html documents directory. This
second instance is running on a different port. I then used pf to
redirect CERTAIN external IP addresses to that second port, so now
some locations on the Internet get one instance, the rest get the
primary instance.

Nick.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Two instances of chrooted OBSD Apache?, Matt, (Wed Jun 13, 5:55 am)
Re: Two instances of chrooted OBSD Apache?, Vjacheslav V. Borisov, (Wed Jun 13, 8:23 am)
Re: Two instances of chrooted OBSD Apache?, Almir Karic, (Wed Jun 13, 6:59 am)
Re: Two instances of chrooted OBSD Apache?, Nick Holland, (Wed Jun 13, 6:38 am)