Advertisement
Guest User

Untitled

a guest
Sep 17th, 2015
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. server {
  2. listen 172.16.0.1:80;
  3. server_name localhost;
  4.  
  5. rewrite ^ https://$server_name/$1 permanent;
  6. }
  7.  
  8. server {
  9.  
  10. listen 172.16.0.1:443;
  11. server_name localhost;
  12.  
  13. ssl on;
  14. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  15. ssl_ciphers HIGH:!aNULL:!MD5;
  16. ssl_prefer_server_ciphers on;
  17. ssl_certificate /etc/nginx/conf.d/ssl/ca.crt;
  18. ssl_certificate_key /etc/nginx/conf.d/ssl/ca.key;
  19.  
  20. access_log /var/log/nginx/local_access.log;
  21. error_log /var/log/nginx/local_error.log;
  22. root /var/www/mikbill/stat/res/nomoney;
  23.  
  24. index index.php;
  25. location / {
  26. root /var/www/mikbill/stat/res/nomoney;
  27. index index.php;
  28. try_files $uri $uri/ /index.php?$args;
  29. }
  30. location ~ \.php$ {
  31. include /etc/nginx/fastcgi_params;
  32. fastcgi_pass unix:/var/run/php-worker-socket;
  33. fastcgi_index index.php;
  34. fastcgi_param SCRIPT_FILENAME /var/www/mikbill/admin/$fastcgi_script_name;
  35. }
  36. }
  37.  
  38.  
  39. #server {
  40. # listen 80;
  41. # server_name IPSERVER;
  42. #
  43. # charset koi8-r;
  44. # #access_log /var/log/nginx/log/host.access.log main;
  45. #
  46. # location / {
  47. # root /var/www/mikbill/stat/res/nomoney;
  48. # index index.html;
  49. # }
  50. #
  51. # #error_page 404 /404.html;
  52. #
  53. # # redirect server error pages to the static page /50x.html
  54. # #
  55. # error_page 500 502 503 504 /50x.html;
  56. # location = /50x.html {
  57. # root /usr/share/nginx/html;
  58. # }
  59. #
  60. #}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement