Advertisement
Guest User

Untitled

a guest
Apr 16th, 2014
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. server {
  2. listen *:80;
  3.  
  4. listen *:443 ssl;
  5. ssl_certificate /var/www/clients/client2/web3/ssl/destinazionesogni.it.crt;
  6. ssl_certificate_key /var/www/clients/client2/web3/ssl/destinazionesogni.it.key;
  7.  
  8. server_name destinazionesogni.it www.destinazionesogni.it;
  9.  
  10. root /var/www/destinazionesogni.it/web;
  11.  
  12.  
  13.  
  14. index index.html index.htm index.php index.cgi index.pl index.xhtml;
  15.  
  16.  
  17.  
  18. error_log /var/log/ispconfig/httpd/destinazionesogni.it/error.log;
  19. access_log /var/log/ispconfig/httpd/destinazionesogni.it/access.log combined;
  20.  
  21. location ~ /\. {
  22. deny all;
  23. access_log off;
  24. log_not_found off;
  25. }
  26.  
  27. location = /favicon.ico {
  28. log_not_found off;
  29. access_log off;
  30. }
  31.  
  32. location = /robots.txt {
  33. allow all;
  34. log_not_found off;
  35. access_log off;
  36. }
  37.  
  38. location /stats {
  39.  
  40. index index.html index.php;
  41. auth_basic "Members Only";
  42. auth_basic_user_file /var/www/clients/client2/web3/web/stats/.htpasswd_stats;
  43. }
  44.  
  45. location ^~ /awstats-icon {
  46. alias /usr/share/awstats/icon;
  47. }
  48.  
  49. location ~ \.php$ {
  50. try_files /1d0365f3ba2c94acc8d6a461a7d0f81d.htm @php;
  51. }
  52.  
  53. location @php {
  54. try_files $uri =404;
  55. include /etc/nginx/fastcgi_params;
  56. fastcgi_pass 127.0.0.1:9012;
  57. fastcgi_index index.php;
  58. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  59. fastcgi_intercept_errors on;
  60. }
  61.  
  62.  
  63.  
  64.  
  65. set $yii_bootstrap "index.php";
  66. charset utf-8;
  67. location / {
  68. index index.html $yii_bootstrap;
  69. try_files $uri $uri/ $yii_bootstrap?$args;
  70. }
  71.  
  72. location ~ ^/(protected|yii|framework|themes/\w+/views) {
  73. deny all;
  74. }
  75.  
  76. location ~ \.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar)$ {
  77. try_files $uri =404;
  78. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement