httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Donald Raikes" <...@draikes.com>
Subject [users@httpd] redirecting with apache 1.3
Date Tue, 12 Oct 2004 19:05:53 GMT



------------------------------
I am running an apache 1.3 server on a sunos 4 box.
Also on that box I have Oracle's oc4j webserver running on port 8888.

I have 2 dns entries for the box
address1, and address2.
When someone accesses address1, I want it to be handled by the default
virtualhost of my apache server.
When someone accesses address2, I want my second virtual host to be
accessed, but I want to redirect all requests to their associated pages on
the oc4j server.

I am a little unclear about how to get this to work.
If I use:
<virtualhost *>
servername address2
redirect address2 192.168.1.100:8888/home.html
redirectmatch (.*)\*.html 192.168.1.100:8888/$1.html
</virtualhost>

Will that direct
http://www.address2 to 192.168.1.100/home.html
and

http://www.address2/test.html to 192.168.1.100:8888/test.html?



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message