lsync_apache
Add the following to the /etc/sysconfig/httpd
OPTIONS="-DSLAVE" export MASTER_SERVER="SERVICENET IP HERE"
Now you add the following to the apache configuration file
Example wordpress lsync apache configuration entry:
<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>
Note:
You will need to make sure the proxy_http is enabled!
lsync_apache.txt · Last modified: 2024/05/23 07:26 by 127.0.0.1