Commit b7c83092 authored by omega8cc's avatar omega8cc

Nginx: error_page directive is not allowed in pseudo-location

parent d3ee8091
......@@ -1055,8 +1055,8 @@ location ~ ^/(?<esi>esi/.*)"$ {
###
if ( $args ~* "/autocomplete/" ) {
return 405;
error_page 405 = @drupal;
}
error_page 405 = @drupal;
###
### Rewrite legacy requests with /index.php to extension-free URL.
......
......@@ -847,8 +847,8 @@ location ^~ /<?php print $subdir; ?> {
###
if ( $args ~* "/autocomplete/" ) {
return 405;
error_page 405 = @drupal_<?php print $subdir; ?>;
}
error_page 405 = @drupal_<?php print $subdir; ?>;
###
### Rewrite legacy requests with /index.php to extension-free URL.
......
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