Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.05 KB | None | 0 0
  1. server {
  2.     listen      192.168.90.23:443;
  3.     server_name spetssnab.info www.spetssnab.info;
  4.     root        /home/admin/web/spetssnab.info/public_html;
  5.     index       index.html index.htm $yii_bootstrap;
  6.         try_files $uri/ /index.php$is_args$args;
  7.      
  8.     access_log  /var/log/nginx/domains/spetssnab.info.log combined;
  9.     access_log  /var/log/nginx/domains/spetssnab.info.bytes bytes;
  10.     error_log   /var/log/nginx/domains/spetssnab.info.error.log error;
  11.     set  $yii_bootstrap "index.php";
  12.     ssl         on;
  13.     ssl_certificate      /home/admin/conf/web/ssl.spetssnab.info.pem;
  14.     ssl_certificate_key  /home/admin/conf/web/ssl.spetssnab.info.key;
  15.    
  16.      if (!-e $request_filename){
  17.     rewrite ^/(.*) /index.php$is_args$args;
  18.     }
  19.     location / {
  20.  
  21.         location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
  22.             expires     max;
  23.         }
  24.    
  25.     location /app/ {
  26.          if (!-e $request_filename){
  27.          rewrite ^/(.*) /web/app/index.php?r=$1 last;
  28.          }
  29.      }
  30.         location ~ [^/]\.php(/|$) {
  31.             fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  32.             if (!-f $document_root$fastcgi_script_name) {
  33.                 return  404;
  34.             }
  35.  
  36.             fastcgi_pass    127.0.0.1:9008;
  37.             fastcgi_index   index.php;
  38.             include         /etc/nginx/fastcgi_params;
  39.         }
  40.     }
  41.  
  42.     error_page  403 /error/404.html;
  43.     error_page  404 /error/404.html;
  44.     error_page  500 502 503 504 /error/50x.html;
  45.  
  46.     location /error/ {
  47.         alias   /home/admin/web/spetssnab.info/document_errors/;
  48.     }
  49.  
  50.     location ~* "/\.(htaccess|htpasswd)$" {
  51.         deny    all;
  52.         return  404;
  53.     }
  54.  
  55.     location /vstats/ {
  56.         alias   /home/admin/web/spetssnab.info/stats/;
  57.         include /home/admin/conf/web/spetssnab.info.auth*;
  58.     }
  59.    
  60.     include     /etc/nginx/conf.d/phpmyadmin.inc*;
  61.     include     /etc/nginx/conf.d/phppgadmin.inc*;
  62.     include     /etc/nginx/conf.d/webmail.inc*;
  63.  
  64.     include     /home/admin/conf/web/snginx.spetssnab.info.conf*;
  65. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement