Title: WP Behind a proxy
Last modified: August 19, 2016

---

# WP Behind a proxy

 *  Resolved [amooz](https://wordpress.org/support/users/amooz/)
 * (@amooz)
 * [16 years ago](https://wordpress.org/support/topic/wp-behind-a-proxy/)
 * Hello,
 * I’m trying to run several websites for myself, one of them being wordpress, off
   of one IP. After Googling around a bit I found the mod_proxy for Apache which
   will let me do this. My endgame is to have something like this:
    |—> Server 1[
   internet]–>[proxy host]—+—> WordPress |—> Server 2 |—> Server 3
 * Each server is listening to ports 80 and 443. Here is what I have to proxy things
   to the WordPress server:
 *     ```
       NameVirtualHost *:80
       NameVirtualHost *:443
   
       <VirtualHost *:80>
               ServerName SERVER_URL
               ProxyPreserveHost On
               ProxyPass / http://1.2.3.4/
               ProxyPassReverse / http://1.2.3.4/
       </VirtualHost>
   
       #<VirtualHost *:443>
       #        ServerName SERVER_URL
       #        ProxyPreserveHost On
       #        ProxyPass / https://1.2.3.4
       #        ProxyPassReverse / https://1.2.3.4
       #</VirtualHost>
       ```
   
 * The SSL-secured site has been disabled for now until I can figure out how to 
   proxy the SSL propery (some help in this area wouldn’t be unappreciated, but 
   the main goal is I’d like to have a working site first.)
 * Note: The configs above have been sanitized

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [amooz](https://wordpress.org/support/users/amooz/)
 * (@amooz)
 * [16 years ago](https://wordpress.org/support/topic/wp-behind-a-proxy/#post-1499007)
 * Anyone? My website is down until this can be fixed..
 *  Thread Starter [amooz](https://wordpress.org/support/users/amooz/)
 * (@amooz)
 * [16 years ago](https://wordpress.org/support/topic/wp-behind-a-proxy/#post-1499009)
 * I must apologize, I was digging through the logs on the WP server instead of 
   my proxy server, I needed to add the following directive to actually allow the
   proxy:
 *     ```
       <Location />
       Order deny,allow
       Allow from all
       </Location>
       ```
   
 * So my new config looks like this:
 *     ```
       NameVirtualHost *:80
       NameVirtualHost *:443
   
       <VirtualHost *:80>
               ServerName SERVER_URL
               ProxyPreserveHost On
               ProxyPass / http://1.2.3.4/
               ProxyPassReverse / http://1.2.3.4/
       <Location />
       Order deny,allow
       Allow from all
       </Location>
       </VirtualHost>
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘WP Behind a proxy’ is closed to new replies.

## Tags

 * [apache](https://wordpress.org/support/topic-tag/apache/)
 * [mod_proxy](https://wordpress.org/support/topic-tag/mod_proxy/)
 * [proxy](https://wordpress.org/support/topic-tag/proxy/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 1 participant
 * Last reply from: [amooz](https://wordpress.org/support/users/amooz/)
 * Last activity: [16 years ago](https://wordpress.org/support/topic/wp-behind-a-proxy/#post-1499009)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
