Advertisement
Guest User

Untitled

a guest
May 15th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 4.13 KB | None | 0 0
  1.  
  2. #user  nobody;
  3. worker_processes  1;
  4.  
  5. #error_log  logs/error.log;
  6. #error_log  logs/error.log  notice;
  7. #error_log  logs/error.log  info;
  8.  
  9. #pid        logs/nginx.pid;
  10.  
  11.  
  12. events {
  13.     worker_connections  1024;
  14. }
  15.  
  16.  
  17. http {
  18.     include       mime.types;
  19.     default_type  application/octet-stream;
  20.  
  21.     #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
  22.     #                  '$status $body_bytes_sent "$http_referer" '
  23.     #                  '"$http_user_agent" "$http_x_forwarded_for"';
  24.  
  25.     #access_log  logs/access.log  main;
  26.  
  27.     sendfile        on;
  28.     #tcp_nopush     on;
  29.  
  30.     #keepalive_timeout  0;
  31.     keepalive_timeout  65;
  32.  
  33.     #gzip  on;
  34.  
  35.     server {
  36.     server_name hem.vku.local *.hem.vku.local;
  37.     root /home/echoes/dev/projects/oncologyuniversity/www_hem;
  38.     client_max_body_size 100m;
  39.     include "include/yii.conf";
  40.         include "include/ref.conf";
  41.  
  42.         error_log /var/log/nginx/hem.vku.error.log;
  43.  
  44.         location ~ \.php$ {
  45.             fastcgi_pass 127.0.0.1:9000;
  46.             include fastcgi.conf;
  47.         }
  48.  
  49.         location ~ /\.ht {
  50.             deny  all;
  51.         }
  52.     }
  53.  
  54.     server {
  55.         server_name scd.hem.vku.local;
  56.         root /home/echoes/dev/projects/oncologyuniversity/www_seg;
  57.         client_max_body_size 100m;
  58.         include "include/yii.conf";
  59.         include "include/ref.conf";
  60.  
  61.         error_log /var/log/nginx/scd.hem.error.log;
  62.  
  63.         location ~ \.php$ {
  64.             fastcgi_pass 127.0.0.1:9000;
  65.             include fastcgi.conf;
  66.         }
  67.  
  68.         location ~ /\.ht {
  69.             deny  all;
  70.         }
  71.     }
  72.  
  73.     server {
  74.         server_name mint.hem.vku.local;
  75.         root /home/echoes/dev/projects/oncologyuniversity/www_mint;
  76.         client_max_body_size 100m;
  77.         include "include/yii.conf";
  78.         include "include/ref.conf";
  79.  
  80.         error_log /var/log/nginx/hem.mint.error.log;
  81.  
  82.         location ~ \.php$ {
  83.             fastcgi_pass 127.0.0.1:9000;
  84.             include fastcgi.conf;
  85.         }
  86.  
  87.         location ~ /\.ht {
  88.             deny  all;
  89.         }
  90.     }
  91.  
  92.     server {
  93.         listen       8080;
  94.         server_name  localhost;
  95.  
  96.         #charset koi8-r;
  97.  
  98.         #access_log  logs/host.access.log  main;
  99.  
  100.         location / {
  101.             root   html;
  102.             index  index.html index.htm;
  103.         }
  104.  
  105.         #error_page  404              /404.html;
  106.  
  107.         # redirect server error pages to the static page /50x.html
  108.         #
  109.         error_page   500 502 503 504  /50x.html;
  110.         location = /50x.html {
  111.             root   html;
  112.         }
  113.  
  114.         # proxy the PHP scripts to Apache listening on 127.0.0.1:80
  115.         #
  116.         #location ~ \.php$ {
  117.         #    proxy_pass   http://127.0.0.1;
  118.         #}
  119.  
  120.         # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  121.         #
  122.         #location ~ \.php$ {
  123.         #    root           html;
  124.         #    fastcgi_pass   127.0.0.1:9000;
  125.         #    fastcgi_index  index.php;
  126.         #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
  127.         #    include        fastcgi_params;
  128.         #}
  129.  
  130.         # deny access to .htaccess files, if Apache's document root
  131.         # concurs with nginx's one
  132.         #
  133.         #location ~ /\.ht {
  134.         #    deny  all;
  135.         #}
  136.     }
  137.  
  138.  
  139.     # another virtual host using mix of IP-, name-, and port-based configuration
  140.     #
  141.     #server {
  142.     #    listen       8000;
  143.     #    listen       somename:8080;
  144.     #    server_name  somename  alias  another.alias;
  145.  
  146.     #    location / {
  147.     #        root   html;
  148.     #        index  index.html index.htm;
  149.     #    }
  150.     #}
  151.  
  152.  
  153.     # HTTPS server
  154.     #
  155.     #server {
  156.     #    listen       443 ssl;
  157.     #    server_name  localhost;
  158.  
  159.     #    ssl_certificate      cert.pem;
  160.     #    ssl_certificate_key  cert.key;
  161.  
  162.     #    ssl_session_cache    shared:SSL:1m;
  163.     #    ssl_session_timeout  5m;
  164.  
  165.     #    ssl_ciphers  HIGH:!aNULL:!MD5;
  166.     #    ssl_prefer_server_ciphers  on;
  167.  
  168.     #    location / {
  169.     #        root   html;
  170.     #        index  index.html index.htm;
  171.     #    }
  172.     #}
  173.     include servers/*;
  174. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement