Joined: 29 Dec 2004
Posts: 783
Location: S.E. Kansas
Posted:
Sun Dec 18, 2005 2:48 am
I'm trying to figure a mod_rewrite rule that will redirect requests to a different port if the server name isn't one specified.
E.G.
host1 is on port 80
host2 is on port 80
host3 is on port 8080, but DNS points to port 80.
host4 is on port 8080, but DNS points to port 80.
host5 is on port 8080, but DNS points to port 80.
so what I need is a rewrite to change any request that aren't hosts 1/2 to port 8080. something like:
Currently I use a perl script to accomplish this, but I would rather have apache do this directly and save bandwidth. Also of interest I changed my indexes to have cgi listed before php
index.cgi
View next topic View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum