mattcarrey

nginx.conf

Dec 25th, 2023
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. server {
  2. listen 80;
  3. index index.php;
  4. error_log /var/log/nginx/error.log;
  5. access_log /var/log/nginx/access.log;
  6. error_page 404 /index.php;
  7. root /var/www/public;
  8. location ~ \.php$ {
  9. try_files $uri =404;
  10. fastcgi_pass app:9000;
  11. fastcgi_index index.php;
  12. include fastcgi_params;
  13. fastcgi_params SCRIPT_FILENAME $document_root$fastcgi_script_name;
  14. }
  15. location / {
  16. try_files $uri $uri/ /index.php?$query_string;
  17. gzip_static on;
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment