daktylos.local 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. server {
  2. listen 80;
  3. listen [::]:80;
  4. # SSL configuration
  5. #
  6. # listen 443 ssl default_server;
  7. # listen [::]:443 ssl default_server;
  8. #
  9. # Self signed certs generated by the ssl-cert package
  10. # Don't use them in a production server!
  11. #
  12. # include snippets/snakeoil.conf;
  13. root /var/www/daktylos/htdocs;
  14. # Add index.php to the list if you are using PHP
  15. index index.php index.html;
  16. server_name *.daktylos.local;
  17. location / {
  18. # First attempt to serve request as file, then
  19. # as directory, then fall back to displaying a 404.
  20. try_files $uri $uri/ =404;
  21. }
  22. location /api/ {
  23. try_files $uri $uri/ /api/index.php$is_args$args;
  24. }
  25. location /dashboard/ {
  26. try_files $uri $uri/ /dashboard/index.php$is_args$args;
  27. }
  28. location /weiss/ {
  29. alias /var/www/weiss/;
  30. }
  31. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  32. #
  33. location ~ \.php$ {
  34. include snippets/fastcgi-php.conf;
  35. fastcgi_param ENVIRONMENT dev;
  36. #fastcgi_pass /var/run/php/php7.0-fpm.sock;
  37. # With php5-cgi alone:
  38. fastcgi_pass 127.0.0.1:9000;
  39. }
  40. # deny access to .htaccess files, if Apache's document root
  41. # concurs with nginx's one
  42. #
  43. #location ~ /\.ht {
  44. # deny all;
  45. #}
  46. }