User Tools

Site Tools


lsync_apache

This is an old revision of the document!


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.1462283177.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