Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (27 sloc) 1.05 KB
########## Backend Apache
# This apache only listens on localhost to port 8200.
# It also has php and mod_rpaf installed. It does not gzip/deflate or access.log. It *Does* error log.
# Basically, your backend apache is fairly normal. You should disable keepalive too by setting
# Keepalive Off
# in your main config.
# mod_rpaf allows your backend apache to see the real IP address of the request, instead of the address of
# your frontend proxy.
Listen 8200
NameVirtualHost IP_ADDRESS:8200
<VirtualHost IP_ADDRESS:8200>
ServerName www.DOMAIN_NAME
RewriteEngine on
DocumentRoot /var/www/DOMAIN_NAME
ServerAdmin webmaster@DOMAIN_NAME
#block POSTS without referrers.
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{REQUEST_URI} .wp-comments-post\.php*
RewriteCond %{HTTP_REFERER} !.*blog.example.org.* [OR]
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule (.*) - [R=403,L]
<IfModule mod_rpaf.c>
RPAFenable On
RPAFsethostname On
RPAFproxy_ips REVERSE_PROXY_IP
</IfModule>
</VirtualHost>
Something went wrong with that request. Please try again.