I have exhausted figuring out something that should be very simple to do via httpd.conf configuration.
I have port 80 open on Box 1, but I need to either serve from that box or serve from Box 2, depending on the URL extension. I also need both boxes redirected to port 8080.
Box 1 (192.168.0.100): Redirects/serves via port 8080 on this first box when URL extension is /parents (e.g.
Box 2 (192.168.0.101): Redirects/serves via port 8080 on this second box when URL extension is /faculty (e.g.
I would think that this is a VERY basic configuration? Right now, the only works is the /parents URL extension. I’ve tried dozens and dozens of other configs to redirect to the second box (/faculty).
I'm hoping someone out there will save me! ...and the school
-Wendi
Linux (Fedora Core 5)
…
httpd.conf
==========
Listen 80
...
NameVirtualHost *:80
<VirtualHost 192.168.0.100:80>
ServerAdmin admin@preschool88.com
ServerName RewriteEngine On
RewriteRule ^/(.*) [L,P]
</VirtualHost>
<VirtualHost 192.168.0.101:80>
ServerAdmin admin@preschool88.com
ServerName RewriteEngine On
RewriteRule ^/(.*) [L,P]
</VirtualHost>
I'd be willing to open a port for each, if that would work. However, I cannot start Apache with a “double listen” (e.g. “Listen 80” [next line] “Listen 10080”) when I put this in the httpd.conf config file.
I have port 80 open on Box 1, but I need to either serve from that box or serve from Box 2, depending on the URL extension. I also need both boxes redirected to port 8080.
Box 1 (192.168.0.100): Redirects/serves via port 8080 on this first box when URL extension is /parents (e.g.
Box 2 (192.168.0.101): Redirects/serves via port 8080 on this second box when URL extension is /faculty (e.g.
I would think that this is a VERY basic configuration? Right now, the only works is the /parents URL extension. I’ve tried dozens and dozens of other configs to redirect to the second box (/faculty).
I'm hoping someone out there will save me! ...and the school
-Wendi
Linux (Fedora Core 5)
…
httpd.conf
==========
Listen 80
...
NameVirtualHost *:80
<VirtualHost 192.168.0.100:80>
ServerAdmin admin@preschool88.com
ServerName RewriteEngine On
RewriteRule ^/(.*) [L,P]
</VirtualHost>
<VirtualHost 192.168.0.101:80>
ServerAdmin admin@preschool88.com
ServerName RewriteEngine On
RewriteRule ^/(.*) [L,P]
</VirtualHost>
I'd be willing to open a port for each, if that would work. However, I cannot start Apache with a “double listen” (e.g. “Listen 80” [next line] “Listen 10080”) when I put this in the httpd.conf config file.