Skip to content

Apache C2 Proxy Setup

Ben Turner edited this page May 25, 2017 · 9 revisions

a2enmod rewrite a2enmod proxy a2enmod proxy_http <VirtualHost :80> RewriteEngine On RewriteRule ^/connect http:///connect [NC,P] RewriteRule ^/daisy http:///daisy [NC,P] RewriteRule ^/images/static/content/(.) http:///images/static/content/$1 [NC,P] RewriteRule ^/news/(.) http:///news/$1 [NC,P] RewriteRule ^/webapp/static/(.) http:///webapp/static/$1 [NC,P] RewriteRule ^/images/prints/(.) http:///images/prints/$1 [NC,P] RewriteRule ^/wordpress/site/(.) http:///wordpress/site/$1 [NC,P] RewriteRule ^/true/images/77/(.) http:///true/images/77/$1 [NC,P] RewriteRule ^/holidngs/images/(.) http:///holidngs/images/$1 [NC,P] RewriteRule ^/steam?p=(.*) http:///holidngs/steam?p=$1 [NC,P] ServerAdmin webmaster@localhost DocumentRoot /var/www/html ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined

RewriteEngine On SSLProxyEngine On SSLProxyCheckPeerCN Off RewriteRule ^/connect https:///connect [NC,P] RewriteRule ^/daisy https:///daisy [NC,P] RewriteRule ^/images/static/content/(.*) https:///images/static/content/$1 [NC,P] RewriteRule ^/news/(.*) https:///news/$1 [NC,P] RewriteRule ^/webapp/static/(.*) https:///webapp/static/$1 [NC,P] RewriteRule ^/images/prints/(.*) https:///images/prints/$1 [NC,P] RewriteRule ^/wordpress/site/(.*) https:///wordpress/site/$1 [NC,P] RewriteRule ^/true/images/77/(.*) https:///true/images/77/$1 [NC,P] RewriteRule ^/holidngs/images/(.*) https:///holidngs/images/$1 [NC,P] RewriteRule ^/steam?p=(.*) https:///holidngs/steam?p=$1 [NC,P] ServerAdmin webmaster@localhost DocumentRoot /var/www/html ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined SSLEngine on SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
Clone this wiki locally