default.conf 580 B

123456789101112131415161718192021222324252627
  1. server {
  2. listen 80;
  3. root /data/www;
  4. index index.php index.html index.htm;
  5. server_name milkyway.guern.eu;
  6. # add locations for static files to not forward these requests to PHP
  7. location /images {
  8. try_files $uri $uri/ =404;
  9. }
  10. location /scripts {
  11. try_files $uri $uri/ =404;
  12. }
  13. location /api {
  14. include fastcgi_params;
  15. fastcgi_param SCRIPT_FILENAME /data/www/api/index.php;
  16. fastcgi_pass php-upstream;
  17. }
  18. location / {
  19. include fastcgi_params;
  20. fastcgi_param SCRIPT_FILENAME /data/www/index.php;
  21. fastcgi_pass php-upstream;
  22. }
  23. }