ccldlidar.com 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. server {
  2. listen 80 default_server;
  3. listen [::]:80 default_server;
  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 *.ccldlidar.com;
  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. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  29. #
  30. location ~ \.php$ {
  31. include snippets/fastcgi-php.conf;
  32. fastcgi_param ENVIRONMENT production;
  33. # With php5-cgi alone:
  34. fastcgi_pass 127.0.0.1:9000;
  35. }
  36. # deny access to .htaccess files, if Apache's document root
  37. # concurs with nginx's one
  38. #
  39. #location ~ /\.ht {
  40. # deny all;
  41. #}
  42. }