This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <VirtualHost ...> | |
| ... | |
| # Reverse Proxy | |
| ProxyRequests Off | |
| #ProxyPreserveHost On | |
| RequestHeader set X-Forwarded-Proto "https" | |
| ProxyPass /blog http://blog.example.org/blog | |
| ProxyPassReverse /blog http://blog.example.org/blog | |
| ... | |
| </VirtualHost> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <VirtualHost *:{PORT}> | |
| ServerName www.yourdomain.com | |
| ServerAdmin [email protected] | |
| DocumentRoot /var/www/yourdir/ | |
| <Directory /var/www/yourdir> | |
| Options Indexes FollowSymLinks | |
| AllowOverride all | |
| Order allow,deny |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| RewriteEngine On | |
| #---------------------------------------------------------- | |
| # RewriteBase for develop | |
| #---------------------------------------------------------- | |
| # SetEnvIf | |
| SetEnvIf Host ^develop.example.com$ REWRITE_BASE=/path/to/develop | |
| # or RewriteCond | |
| #RewriteCond %{HTTP_HOST} ^develop.example.com$ |