View Single Post

  #4 (permalink)  
Old 12-19-2006
Ricardo Manuel Oliveira
 
Posts: n/a
Default Re: static Domain URL????

Disregarding the fact this could be less than desireable, you can also
do it using the power of mod_rewrite with mod_proxy.

A simple configuration:

RewriteEngine On
RewriteRule ^/(.*)$ /$1 [P,L]

You should change this and test in your environment.

One small GOTCHA, though: since we're using mod_proxy to get all the
URLs from the webserver itself, all your hits will appear to come from
the webserver's IP address (except for the direct accesses).
You can sort it out parsing the logfiles and regarding x-forwarded-for
information instead of remote-ip.

Regards,
Ricardo Oliveira
http://apache.superbofh.org/ - Apache book in Portuguese