zeek, On Tuesday August 27, 2002 05:18, you said something about: > Greetings, > > I'm trying to run a 2 port Apache (port 80 and 8000) in the cleanest way > possible, meaning the least amount of hacking configs. I saw in > /etc/rc.d/init.d/httpd a var for $OPTIONS but I couldn't track down what > this was (does it source something in /etc/sysconfig? If so, what?). I know > I'll at least have to do this "ServerRoot /etc/httpd-8000" and modify the > httpd.conf there but why should I have to create another init script > /etc/rc.d/init.d/httpd-8000 and move the pidfile elsewhere... > > In sum my question is this: Has anyone written a howto on running Apache on > multiple ports on Red Hat? I don't mean to ask *how* this is done (I know > that), but rather what's the neatest, most modular, least config file > rewriting way of doing this? > > For the lazies and chronically tidy out there you'll see I'm trying to > remain as vanilla valhalla as possible with my install. I want to have to > change as little as possible to do this.
I think you're overcomplicating it. The only place you will have to do any configuration for Apache is in the httpd.conf file. Usually located in /etc/httpd/conf/httpd.conf To handle the modifications you wish to do you need only make a couple of changes. 1. Let Apache know to listen on another port. This is done by using the "Listen" directive. You may already have a line for port 80. This one will allow for you to listen on multiple IP addresses. Listen *:8080 or for only one address... Listen 12.34.56.78:8080 2. Configure a virtual host to handle those requests. (This is just for show, exact definition is up to you.) <VirtualHost _default_:8080> ServerName your.host.name DocumentRoot "/var/www/path-to-files" </VirtualHost> And you're all done. Restart apache and begin browsing. # service httpd restart Hope that helps. -- Brian Ashe CTO Dee-Web Software Services, LLC. [EMAIL PROTECTED] -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list