Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 172.16.0.1:80;
- server_name localhost;
- rewrite ^ https://$server_name/$1 permanent;
- }
- server {
- listen 172.16.0.1:443;
- server_name localhost;
- ssl on;
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
- ssl_ciphers HIGH:!aNULL:!MD5;
- ssl_prefer_server_ciphers on;
- ssl_certificate /etc/nginx/conf.d/ssl/ca.crt;
- ssl_certificate_key /etc/nginx/conf.d/ssl/ca.key;
- access_log /var/log/nginx/local_access.log;
- error_log /var/log/nginx/local_error.log;
- root /var/www/mikbill/stat/res/nomoney;
- index index.php;
- location / {
- root /var/www/mikbill/stat/res/nomoney;
- index index.php;
- try_files $uri $uri/ /index.php?$args;
- }
- location ~ \.php$ {
- include /etc/nginx/fastcgi_params;
- fastcgi_pass unix:/var/run/php-worker-socket;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME /var/www/mikbill/admin/$fastcgi_script_name;
- }
- }
- #server {
- # listen 80;
- # server_name IPSERVER;
- #
- # charset koi8-r;
- # #access_log /var/log/nginx/log/host.access.log main;
- #
- # location / {
- # root /var/www/mikbill/stat/res/nomoney;
- # index index.html;
- # }
- #
- # #error_page 404 /404.html;
- #
- # # redirect server error pages to the static page /50x.html
- # #
- # error_page 500 502 503 504 /50x.html;
- # location = /50x.html {
- # root /usr/share/nginx/html;
- # }
- #
- #}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement