| 123456789101112131415161718192021222324252627 |
- server {
- listen 80;
- server_name localhost;
- root /var/www/html/public;
- index index.php;
- charset utf-8;
- location / {
- try_files $uri $uri/ /index.php?$query_string;
- }
- location = /index.php {
- include fastcgi_params;
- fastcgi_pass php:9000;
- fastcgi_param SCRIPT_FILENAME $document_root/index.php;
- }
- location ~ \.php$ {
- return 404;
- }
- location ~ /\.(?!well-known).* {
- deny all;
- }
- }
|