File tree Expand file tree Collapse file tree
root/defaults/nginx/site-confs Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- ## Version 2026/02/08 - Changelog: https://github.com/linuxserver/docker-phpmyadmin/commits/main/root/defaults/nginx/site-confs/default.conf.sample
1+ ## Version 2026/05/05 - Changelog: https://github.com/linuxserver/docker-phpmyadmin/commits/main/root/defaults/nginx/site-confs/default.conf.sample
22
33map $sent_http_content_type $expires {
4- default off;
5- ~js/ max;
6- ~themes/ max;
7- ~doc/ max;
4+ default off;
5+ ~js/ max;
6+ ~themes/ max;
7+ ~doc/ max;
88}
99
1010server {
@@ -22,6 +22,18 @@ server {
2222 root /app/www/public;
2323 index index.html index.htm index.php;
2424
25+ # Allow access to the ".well-known" directory
26+ location ^~ /.well-known {
27+ allow all;
28+ }
29+
30+ # deny access to all dotfiles
31+ location ~ /\. {
32+ access_log off;
33+ log_not_found off;
34+ return 404;
35+ }
36+
2537 location / {
2638 # enable for basic auth
2739 #auth_basic "Restricted";
@@ -38,24 +50,13 @@ server {
3850 #auth_basic_user_file /config/nginx/.htpasswd;
3951
4052 fastcgi_split_path_info ^(.+\.php)(.*)$;
41- if (!-f $document_root$fastcgi_script_name) { return 404; }
53+ if (!-f $document_root$fastcgi_script_name) {
54+ return 404;
55+ }
4256 fastcgi_pass 127.0.0.1:9000;
4357 fastcgi_index index.php;
4458 include /etc/nginx/fastcgi_params;
4559
4660 fastcgi_read_timeout 3600;
4761 }
48-
49- # deny access to all dotfiles
50- location ~ /\. {
51- deny all;
52- log_not_found off;
53- access_log off;
54- return 404;
55- }
56-
57- # Allow access to the ".well-known" directory
58- location ^~ /.well-known {
59- allow all;
60- }
6162}
You can’t perform that action at this time.
0 commit comments