ccldlidar.com 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. server {
  2. listen 80 default_server;
  3. listen [::]:80 default_server;
  4. server_name *.ccldlidar.com;
  5. return 301 https://$host$request_uri;
  6. }
  7. server {
  8. listen 443 ssl default_server;
  9. listen [::]:443 ssl default_server;
  10. ssl on;
  11. ssl_certificate /etc/nginx/security/ccldlidar.com.crt;
  12. ssl_certificate_key /etc/nginx/security/ccldlidar.com.key;
  13. root /var/www/ccldlidar.com/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. location /weiss/ {
  29. alias /var/www/weiss-prod/;
  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 production;
  36. fastcgi_pass unix:/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. }