Commit 4d9324de authored by omega8cc's avatar omega8cc

Issue #2685575 by NWOM -- Nginx: whitelist xmlrpc.php when...

Issue #2685575 by NWOM -- Nginx: whitelist xmlrpc.php when /etc/nginx/basic_nginx.conf ctrl file is present
parent c97927b0
......@@ -1211,7 +1211,7 @@ location = /index.php {
<?php if ($nginx_config_mode == 'extended'): ?>
location ~* ^/(?:core/)?(?:boost_stats|rtoc|js)\.php$ {
<?php else: ?>
location ~* ^/(?:index|cron|boost_stats|update|authorize)\.php$ {
location ~* ^/(?:index|cron|boost_stats|update|authorize|xmlrpc)\.php$ {
<?php endif; ?>
<?php if ($satellite_mode == 'boa'): ?>
limit_conn limreq 88;
......
......@@ -887,7 +887,7 @@ location ^~ /<?php print $subdir; ?> {
<?php if ($nginx_config_mode == 'extended'): ?>
location ~* ^/<?php print $subdir; ?>/((core/)?(boost_stats|rtoc|js))\.php$ {
<?php else: ?>
location ~* ^/<?php print $subdir; ?>/(cron|boost_stats|update|authorize)\.php$ {
location ~* ^/<?php print $subdir; ?>/(cron|boost_stats|update|authorize|xmlrpc)\.php$ {
<?php endif; ?>
<?php if ($satellite_mode == 'boa'): ?>
limit_conn limreq 88;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment