36 lines
		
	
	
	
		
			943 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
	
		
			943 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| server {
 | |
|     listen 443      ssl http2;
 | |
|     listen [::]:443 ssl http2;
 | |
| 
 | |
|     server_name ${server_name};
 | |
|     root ${root};
 | |
|     index index.php index.html index.htm;
 | |
| 
 | |
|     ssl_certificate /var/lib/dehydrated/certs/${server_name}/fullchain.pem;
 | |
|     ssl_certificate_key /var/lib/dehydrated/certs/${server_name}/privkey.pem;
 | |
| 
 | |
|     location / {
 | |
|         try_files $uri $uri/ /index.php;
 | |
|     }
 | |
| 
 | |
|     location ~ ^/(README|INSTALL|LICENSE|CHANGELOG|UPGRADING)$ {
 | |
|         deny all;
 | |
|     }
 | |
|     location ~ ^/(bin|SQL)/ {
 | |
|         deny all;
 | |
|     }
 | |
| 
 | |
|     location ~ \.php$ {
 | |
|         try_files $uri =404;
 | |
|         fastcgi_pass php-handler;
 | |
|         fastcgi_index index.php;
 | |
|         fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
 | |
|         include params/fastcgi;
 | |
|     }
 | |
| 
 | |
|     location ~* \.(jpg|jpeg|gif|png|webp|svg|woff|woff2|ttf|css|js|ico|xml)$ {
 | |
|         access_log        off;
 | |
|         log_not_found     off;
 | |
|         expires           360d;
 | |
|     }
 | |
| }
 |