mirror of
				https://github.com/linuxserver/docker-heimdall.git
				synced 2025-11-01 05:27:38 +09:00 
			
		
		
		
	Merge pull request #154 from linuxserver/delete-default-conf-development
Delete root/defaults/nginx/site-confs/default.conf.sample [development]
This commit is contained in:
		| @@ -1,38 +0,0 @@ | ||||
| ## Version 2024/06/27 - Changelog: https://github.com/linuxserver/docker-heimdall/commits/master/root/defaults/nginx/site-confs/default.conf.sample | ||||
|  | ||||
| server { | ||||
|     listen *:80 default_server; | ||||
|     listen *:443 ssl default_server; | ||||
|  | ||||
|     server_name _; | ||||
|  | ||||
|     include /config/nginx/ssl.conf; | ||||
|  | ||||
|     root /app/www/public; | ||||
|     index index.html index.htm index.php; | ||||
|  | ||||
|     location / { | ||||
|         # enable for basic auth | ||||
|         #auth_basic "Restricted"; | ||||
|         #auth_basic_user_file /config/nginx/.htpasswd; | ||||
|  | ||||
|         try_files $uri $uri/ /index.html /index.htm /index.php$is_args$args; | ||||
|     } | ||||
|  | ||||
|     location ~ ^(.+\.php)(.*)$ { | ||||
|         # enable the next two lines for http auth | ||||
|         #auth_basic "Restricted"; | ||||
|         #auth_basic_user_file /config/nginx/.htpasswd; | ||||
|  | ||||
|         fastcgi_split_path_info ^(.+\.php)(.*)$; | ||||
|         if (!-f $document_root$fastcgi_script_name) { return 404; } | ||||
|         fastcgi_pass 127.0.0.1:9000; | ||||
|         fastcgi_index index.php; | ||||
|         include /etc/nginx/fastcgi_params; | ||||
|     } | ||||
|  | ||||
|     # deny access to .htaccess/.htpasswd files | ||||
|     location ~ /\.ht { | ||||
|         deny all; | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user