Skip to content

Commit a50d975

Browse files
committed
nginx conf tweaks
1 parent df24c38 commit a50d975

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

root/defaults/nginx/site-confs/default.conf.sample

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,12 @@ server {
1212
root /app/www/public;
1313
index index.html index.htm index.php;
1414

15-
error_page 599 = @noauth;
16-
17-
location @noauth {
18-
try_files $uri $uri/ /index.php?$args;
19-
}
20-
2115
location / {
2216
# enable for basic auth
2317
#auth_basic "Restricted";
2418
#auth_basic_user_file /config/nginx/.htpasswd;
2519

26-
try_files $uri $uri/ /index.php?$query_string;
20+
try_files $uri $uri/ /index.php$is_args$args;
2721
}
2822

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

0 commit comments

Comments
 (0)