Posted By

neoandroid on 03/06/11


Tagged

htaccess reverse proxy


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

wirenaught


Reverse proxy via htaccess


 / Published in: Apache
 

  1. # This rule will send the requests that client made as being from our server to the
  2. # server_name specified.
  3. # Combined with a named apache virtualhost this can be used to expose multiple webservers
  4. # behind the same IP public address. The server were we put this config will act as a
  5. # gateway and the public IP address must point to him.
  6.  
  7. RewriteRule ^(.*)$ http://server_name/$1 [P,L]
  8. RewriteRule ^$ http://server_name/ [P,L]

Report this snippet  

You need to login to post a comment.