JZTech101

Untitled

Nov 17th, 2013
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1.  
  2. user nginx;
  3. worker_processes 1;
  4.  
  5. error_log /var/log/nginx/error.log warn;
  6. pid /var/run/nginx.pid;
  7.  
  8.  
  9. events {
  10. worker_connections 1024;
  11. }
  12.  
  13.  
  14. http {
  15. server {
  16. location /webchat/ {
  17. rewrite /webchat/(.*) .$1 break;
  18. proxy_pass http://127.0.0.1:9090;
  19. proxy_redirect off;
  20. proxy_set_header X-Real-IP $remote_addr;
  21. proxy_set_header Host $host;
  22. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  23. proxy_buffering off;
  24. }
  25. location /znc/ {
  26. return 302 http://znc.techcavern.com:8085;
  27. }
  28. location / {
  29. root /data/www/;
  30. index index.html index.php /index.php;
  31. try_files $uri $uri/ /index.html;
  32. }
  33. location ~ \.php$ {
  34. root /data/www;
  35. fastcgi_pass 127.0.0.1:9000;
  36. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  37. include fastcgi_params;
  38. }
  39.  
  40.  
  41. }
  42. }
Advertisement
Add Comment
Please, Sign In to add comment