Advertisement
Guest User

php

a guest
Jun 20th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.85 KB | None | 0 0
  1. server {
  2. listen 80;
  3. server_name *.weconnect.com;
  4. return 301 https://$host$request_uri;
  5. }
  6. server {
  7. listen 443;
  8. server_name *.weconnect.com;
  9.  
  10. ssl on;
  11. #ssl_certificate /data/ssl/weconnect/wildcard_weconnect_com.crt;
  12. #ssl_certificate_key /data/ssl/weconnect/wildcard_weconnect_com.key;
  13. #ssl_certificate /data/ssl/ssltest/full-bundle.pem;
  14. #ssl_certificate_key /data/ssl/ssltest/privkey1.pem;
  15. #ssl_certificate /data/ssl/qa-weconnect/wildcard_qa_weconnect_com.crt;
  16. #ssl_certificate_key /data/ssl/qa-weconnect/wildcard_qa_weconnect_com.key;
  17. ssl_certificate /data/ssl/weconnect/wildcard_weconnect_com.crt;
  18. ssl_certificate_key /data/ssl/weconnect/wildcard_weconnect_com.key;
  19.  
  20. ssl_protocols TLSv1.1 TLSv1.2;
  21. ssl_prefer_server_ciphers on;
  22. #ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
  23. #ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  24. #ssl_dhparam /opt/local/etc/nginx/ssl/dhparams.pem;
  25. ssl_ciphers HIGH:!aNULL:!MD;
  26. #ssl_ecdh_curve secp384r1;
  27. ssl_session_cache shared:SSL:10m;
  28. ssl_session_tickets off;
  29. # ssl_stapling on;
  30. # ssl_stapling_verify on;
  31.  
  32. #set $APPLICATION_ENV "ssltest";
  33. set $APPLICATION_ENV "production";
  34.  
  35. root /data/www/weconnect/public;
  36.  
  37. access_log /data/log/nginx/weconnect.com.access.log combined;
  38. error_log /data/log/nginx/weconnect.com.error.log;
  39.  
  40.  
  41. # location / {
  42. # index index.php index.html index.htm;
  43. # try_files $uri $uri/ /index.php?$args;
  44. #
  45. # include /usr/local/etc/nginx/fastcgi_params;
  46. # fastcgi_pass unix:/var/run/php-fpm.sock;
  47. # fastcgi_read_timeout 1200;
  48. # }
  49.  
  50. location / {
  51. index index.php;
  52. try_files $uri $uri/ /index.php?$query_string;
  53. # include /usr/local/etc/nginx/fastcgi_params;
  54. # fastcgi_pass unix:/var/run/php-fpm.sock;
  55. # fastcgi_read_timeout 1200;
  56. }
  57. # Be sure that local /photos directory is passed to php(1)
  58. location /photos {try_files $uri uri/ /index.php?$query_string;}
  59.  
  60.  
  61. location ~ \.php$ {
  62. #fastcgi_param APPLICATION_ENV "ssltest";
  63. fastcgi_param APPLICATION_ENV "production";
  64. fastcgi_pass unix:/var/run/php-fpm.sock;
  65. include /usr/local/etc/nginx/fastcgi_params;
  66. include fastcgi_params;
  67. fastcgi_read_timeout 900;
  68. fastcgi_split_path_info ^(.+\.php)(/.*)$;
  69. fastcgi_index index.php;
  70. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  71. fastcgi_param SERVER_NAME $host;
  72. if (!-f $document_root$fastcgi_script_name) {
  73. return 404;
  74. }
  75. }
  76. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement