Код: Выделить всё
Alias /eset_upd "/etc/nod32ms/www/eset_upd"
AliasMatch ^/v([3-9]|1[0])-rel-sta(.*) /etc/nod32ms/www/v$1-rel-sta$2
Код: Выделить всё
Alias /eset_upd "/etc/nod32ms/www/eset_upd"
AliasMatch ^/v([3-9]|1[0])-rel-sta(.*) /etc/nod32ms/www/v$1-rel-sta$2
В ноде должен быть указан адрес на корневую папку www: ту где папки eset_upd и *-rel-stapropeller25 писал(а): ↑2019-08-01 11:25:03дописал эти две строчки. Нод стал писать в добавок, что файл на сервере не найден... (
может у вас сключем что-то? но судя по логу апача, он вобще у вас не видит алиасовpropeller25 писал(а): ↑2019-08-01 16:31:06Ок. Но я одного не понимаю. Это все само работало до июня месяца и я ничего не трогал и не менял, а потом перестало. nod4. Почему?
Код: Выделить всё
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory /var/www/nod32up>
Options -Indexes +FollowSymlinks +MultiViews
AllowOverride All
Order allow,deny
Allow from all
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ^ESS.*BPC.3
RewriteRule ^update.ver$ /eset_upd/update.ver [L]
RewriteCond %{HTTP_USER_AGENT} ^ESS\ Update.*BPC\ ([4-9]|12) [OR]
RewriteCond %{HTTP_USER_AGENT} ^UES\ Update.*BPC\ ([4-9]|12)
RewriteRule ^update.ver$ /eset_upd/v%1/update.ver [R]
RewriteCond %{HTTP_USER_AGENT} ^ESS\ Update.*BPC\ (10|11) [OR]
RewriteCond %{HTTP_USER_AGENT} ^UES\ Update.*BPC\ (10|11)
RewriteRule ^update.ver$ /eset_upd/v10/update.ver [R]
</Directory>
Alias /eset_upd "/var/www/nod32up/eset_upd"
AliasMatch ^/v([3-9]|12)-rel-sta(.*) /var/www/nod32up/v$1-rel-sta$2
AliasMatch ^/v10-rel-sta(.*) /var/www/nod32up/v10-rel-sta$2
AliasMatch ^/v11-rel-sta(.*) /var/www/nod32up/v10-rel-sta$2
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Код: Выделить всё
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /../eset_mirror_script/www
<Directory "/../eset_mirror_script/www">
Options FollowSymLinks
AllowOverride All
Require all granted
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ^.*Update.*BPC\ 3
RewriteRule ^update.ver$ /eset_upd/update.ver [L]
RewriteCond %{HTTP_USER_AGENT} ^.*Update.*BPC\ ([4-9])
RewriteRule ^update.ver$ /eset_upd/v%1/update.ver [L]
RewriteCond %{HTTP_USER_AGENT} ^.*Update.*BPC\ 10 [OR]
RewriteCond %{HTTP_USER_AGENT} ^.*Update.*BPC\ 11
RewriteRule ^update.ver$ /eset_upd/v10/update.ver [L]
RewriteCond %{HTTP_USER_AGENT} ^.*Update.*BPC\ 12
RewriteRule ^update.ver$ /eset_upd/v12/update.ver [L]
</Directory>
ErrorLog /var/logs/error.log
CustomLog /var/www/access.log combined
</VirtualHost>
Код: Выделить всё
RedirectMatch "^/eset_upd/$" "http://192.168.0.8/"
Код: Выделить всё
<Directory /var/www/nod32up>
.....
.....
RedirectMatch "^/eset_upd/$" "http://192.168.0.8/"
.....
.....
</Directory>
fahr писал(а): ↑2019-08-02 20:02:51<Directory /var/www/nod32up>
.....
.....
RedirectMatch "^/eset_upd/$" "http://192.168.0.8/"
.....
.....
</Directory>
Alias из конфига убери.
Код: Выделить всё
RewriteCond %{HTTP_USER_AGENT} ^.*Update.*BPC\ ([4-9])
RewriteRule ^eset_upd/update.ver$ /eset_upd/v%1/update.ver [L]
Код: Выделить всё
PHP Fatal error: Redefinition of parameter $version in /usr/local/www/apache24/data/nod32ms/inc/classes/Mirror.class.php on line 140
Скачайте версию https://github.com/Kingston-kms/eset_mirror_script настройте и проверьте