default.magento1.conf 629 B

1234567891011121314151617181920212223242526272829303132333435
  1. upstream fastcgi_backend {
  2. server unix:/sock/docker.sock;
  3. }
  4. server {
  5. listen 8000;
  6. server_name localhost;
  7. set $MAGE_ROOT /var/www/html;
  8. set $MAGE_IS_DEVELOPER_MODE true;
  9. root $MAGE_ROOT;
  10. index index.php;
  11. autoindex off;
  12. charset off;
  13. add_header 'X-Content-Type-Options' 'nosniff';
  14. location / {
  15. try_files $uri $uri/ /index.php?$args;
  16. }
  17. location ~ cron\.php {
  18. deny all;
  19. }
  20. location ~* \.php$ {
  21. try_files $uri =404;
  22. fastcgi_pass fastcgi_backend;
  23. fastcgi_index index.php;
  24. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  25. include fastcgi_params;
  26. }
  27. }