Forum Moderators: phranque

Message Too Old, No Replies

Using Mod_Rewrite to Handle Blocked Ports

Using Mod_Rewrite's Proxy Feature to redirect users without access to ports

         

jmcclure

12:48 pm on Aug 29, 2005 (gmt 0)



I am running images from a virtual server that sits on port 8080. The page content is sitting on another virtual server on port 80. Everything works fine for 99% of users, but some seem to have corporate firewalls/proxies blocking the images from being accessed on port 8080. Is there a way with mod_rewrite to detect these users and redirect them to another url on port 80 so the images will display?

For Example:
-> images.server.com sits on port 8080 and resolves to:
/www/images/
-> www.server.com sits on port 80 and resolves to:
/www/html/
-> all.server.com sits on port 80 and resolves to:
/www/

Is it possible to catch users that can't access images.server.com and pass the request via proxy to all.server.com/images/?

Thanks in advance,

Jeffrey

ChadSEO

3:41 pm on Aug 29, 2005 (gmt 0)

10+ Year Member



Jeffrey,

If they are being blocked by a firewall, then there will be no traffic reaching the web server at all, so there's nothing that you could detect. You might be able to use some sort of on-page test, using javascript, but as for using mod_rewrite or some other server-based test, traffic would be getting blocked too early for the server to know.

Chad