Answer the question
In order to leave comments, you need to log in
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
Write several configs with nodaemon = true and run by cron.
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]
RewriteCond %{HTTP_HOST} ^www\.domain2\.ru
RewriteRule ^(.*)$ /site/$1 [L]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question