A
A
Alex Teterin2016-02-15 19:56:10
linux
Alex Teterin, 2016-02-15 19:56:10

lsyncd single files + multiple different folders?

Lord comrades! Help!
Well, I can’t do it so that in the lsyncd config you can specify several folders for synchronization and that you can specify separate files for synchronization and not folders, well, what is it, is there really no solution for such a banal task?!?!
That you can synchronize ONLY one folder on the server? Question for a PHP application cluster, you need to synchronize files uploaded by users on all nodes

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry, 2016-02-15
@Tabletko

rsync or some clustered fs

V
Vlad Zhivotnev, 2016-02-15
@inkvizitor68sl

Write several configs with nodaemon = true and run by cron.

U
ugodrus, 2014-10-28
@ugodrus

In general, the manipulations are not entirely clear.
Before you embarrass yourself with your options, read the mod_rewrite documentation in the environment variables section.
You place it at the root of domain1

RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain1\.ru
RewriteCond %{REQUEST_URI} ^/site
RewriteRule .* http://www.domain2.ru/ [R,L]

If you want to use this for aliases, then add more like this.
RewriteCond %{HTTP_HOST} ^www\.domain2\.ru
RewriteRule ^(.*)$ /site/$1 [L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question