Reverse proxy via htaccess


/ Published in: Apache
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.