File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
root/defaults/nginx/site-confs Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -168,6 +168,7 @@ app_setup_block: |
168168
169169# changelog
170170changelogs :
171+ - { date: "06.03.24:", desc: "[Existing users should update:](https://github.com/linuxserver/docker-swag/blob/master/README.md#updating-configs) site-confs/default.conf - Cleanup default site conf." }
171172 - { date: "04.03.24:", desc: "Remove `stream.conf` inside the container to allow users to include their own block in `nginx.conf`." }
172173 - { date: "23.01.24:", desc: "Rebase to Alpine 3.19 with php 8.3, add root periodic crontabs for logrotate." }
173174 - { date: "01.01.24:", desc: "Add GleSYS DNS plugin." }
Original file line number Diff line number Diff line change 1- ## Version 2023/11/27 - Changelog: https://github.com/linuxserver/docker-swag/commits/master/root/defaults/nginx/site-confs/default.conf.sample
1+ ## Version 2024/03/06 - Changelog: https://github.com/linuxserver/docker-swag/commits/master/root/defaults/nginx/site-confs/default.conf.sample
22
33# redirect all traffic to https
44server {
@@ -48,7 +48,7 @@ server {
4848 # enable for Authentik (requires authentik-server.conf in the server block)
4949 #include /config/nginx/authentik-location.conf;
5050
51- try_files $uri $uri/ /index.html /index.php$is_args$args;
51+ try_files $uri $uri/ /index.html /index.htm /index. php$is_args$args;
5252 }
5353
5454 location ~ ^(.+\.php)(.*)$ {
@@ -65,8 +65,8 @@ server {
6565 # enable for Authentik (requires authentik-server.conf in the server block)
6666 #include /config/nginx/authentik-location.conf;
6767
68- try_files $fastcgi_script_name =404;
6968 fastcgi_split_path_info ^(.+\.php)(.*)$;
69+ if (!-f $document_root$fastcgi_script_name) { return 404; }
7070 fastcgi_pass 127.0.0.1:9000;
7171 fastcgi_index index.php;
7272 include /etc/nginx/fastcgi_params;
You can’t perform that action at this time.
0 commit comments