lsync_apache
Add the following to the /etc/sysconfig/httpd
1 2 |
OPTIONS= "-DSLAVE" export MASTER_SERVER= "SERVICENET IP HERE" |
Now you add the following to the apache configuration file
Example wordpress lsync apache configuration entry:
1 2 3 4 5 6 7 8 9 10 |
<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