Skip to content

Commit

Permalink
nginx conf tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
nemchik committed Aug 23, 2022
1 parent 8aab211 commit fb2a263
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions root/defaults/nginx/site-confs/default.conf.sample
Expand Up @@ -12,18 +12,12 @@ server {
root /app/www/public;
index index.html index.htm index.php;

error_page 599 = @noauth;

location @noauth {
try_files $uri $uri/ /index.php?$args;
}

location / {
# enable for basic auth
#auth_basic "Restricted";
#auth_basic_user_file /config/nginx/.htpasswd;

try_files $uri $uri/ /index.php?$query_string;
try_files $uri $uri/ /index.php$is_args$args;
}

location ~ ^(.+\.php)(.*)$ {
Expand Down

0 comments on commit fb2a263

Please sign in to comment.