Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user nginx;
- worker_processes 1;
- error_log /var/log/nginx/error.log warn;
- pid /var/run/nginx.pid;
- events {
- worker_connections 1024;
- }
- http {
- server {
- location /webchat/ {
- rewrite /webchat/(.*) .$1 break;
- proxy_pass http://127.0.0.1:9090;
- proxy_redirect off;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header Host $host;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_buffering off;
- }
- location /znc/ {
- return 302 http://znc.techcavern.com:8085;
- }
- location / {
- root /data/www/;
- index index.html index.php /index.php;
- try_files $uri $uri/ /index.html;
- }
- location ~ \.php$ {
- root /data/www;
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment