Skip to content

Instantly share code, notes, and snippets.

@royzimanyiwa
royzimanyiwa / apache.conf
Created February 21, 2021 23:09 — forked from 4ley/apache.conf
WordPress / Apache / Reverse Proxy
<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>
@royzimanyiwa
royzimanyiwa / proxy.apache.conf
Created February 21, 2021 22:12 — forked from chrisjhoughton/proxy.apache.conf
Sample Nginx reverse proxy to Apache set up for Wordpress.
<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
@royzimanyiwa
royzimanyiwa / .htaccess
Created February 21, 2021 21:17 — forked from k-holy/.htaccess
Dynamic RewriteBase for Apache (mod_rewrite, mod_setenvif)
RewriteEngine On
#----------------------------------------------------------
# RewriteBase for develop
#----------------------------------------------------------
# SetEnvIf
SetEnvIf Host ^develop.example.com$ REWRITE_BASE=/path/to/develop
# or RewriteCond
#RewriteCond %{HTTP_HOST} ^develop.example.com$