- Oct 12, 1999
- 8,361
- 0
- 0
I have apache 1.3.whutever installed on a Linux box. I would like to serve different web pages based on the port specified in the URL. For example:
http://myhost:12345/ serves up pages from /var/www1
http://myhost:54321/ serves up pages from /var/www2
http://myhost/ serves up /var/www (normal port 80 stuff)
I realize that I could just make the secondary sites subdirectories off of the main port-80 server. But, I'd like to keep everything isolated, if I could (and keep my firewalling router happy).
I have tried hacking my way through httpd.conf manually and via Webmin (which continues to work fine on http://myhost:10000/, yet is not listed in httpd.conf). I can only guess that my Listen, ServerName, and VirtualHost settings are not quite right.
Can someone post a working httpd.conf that is generic enough for me to get going? I'm not sitting in front of this server to post what I've already got.
Thanks in advance.
-SUO
http://myhost:12345/ serves up pages from /var/www1
http://myhost:54321/ serves up pages from /var/www2
http://myhost/ serves up /var/www (normal port 80 stuff)
I realize that I could just make the secondary sites subdirectories off of the main port-80 server. But, I'd like to keep everything isolated, if I could (and keep my firewalling router happy).
I have tried hacking my way through httpd.conf manually and via Webmin (which continues to work fine on http://myhost:10000/, yet is not listed in httpd.conf). I can only guess that my Listen, ServerName, and VirtualHost settings are not quite right.
Can someone post a working httpd.conf that is generic enough for me to get going? I'm not sitting in front of this server to post what I've already got.
Thanks in advance.
-SUO