User Tools

Site Tools


lsync_apache

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
lsync_apache [2016/01/26 12:24] – created luke7858lsync_apache [2024/05/23 07:26] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +Add the following to the /etc/sysconfig/httpd
 <sxh bash> <sxh bash>
-vim /etc/sysconfig/httpd 
 OPTIONS="-DSLAVE" OPTIONS="-DSLAVE"
 +export MASTER_SERVER="SERVICENET IP HERE"
 </sxh> </sxh>
 +\\
 +Now you add the following to the apache configuration file
 +\\
 +Example wordpress lsync apache configuration entry:
 +<sxh bash>
 +        <IfDefine SLAVE>
 +          RewriteEngine On
 +          ProxyPreserveHost On
 +
 +          ProxyPass /wp-admin/ http://${MASTER_SERVER}/wp-admin/
 +          ProxyPassReverse /wp-admin/ http://${MASTER_SERVER}/wp-admin/
 +
 +          RewriteCond %{REQUEST_METHOD} =POST
 +          RewriteRule . http://${MASTER_SERVER}%{REQUEST_URI} [P]
 +        </IfDefine>
 +</sxh>
 +==Note:== 
 +You will need to make sure the proxy_http is enabled!
lsync_apache.1453811045.txt.gz · Last modified: 2024/05/23 07:26 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki