1234567891011121314151617181920212223242526272829303132333435 |
- upstream fastcgi_backend {
- server unix:/sock/docker.sock;
- }
- server {
- listen 8000;
- server_name localhost;
- set $MAGE_ROOT /var/www/html;
- set $MAGE_IS_DEVELOPER_MODE true;
- root $MAGE_ROOT;
- index index.php;
- autoindex off;
- charset off;
- add_header 'X-Content-Type-Options' 'nosniff';
- location / {
- try_files $uri $uri/ /index.php?$args;
- }
-
- location ~ cron\.php {
- deny all;
- }
- location ~* \.php$ {
- try_files $uri =404;
- fastcgi_pass fastcgi_backend;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- }
- }
|