Advertisement
Guest User

Untitled

a guest
Dec 11th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. #user nobody;
  2. worker_processes 1;
  3.  
  4. events {
  5. worker_connections 1024;
  6. }
  7.  
  8.  
  9. http {
  10. include mime.types;
  11. default_type application/octet-stream;
  12. server_names_hash_bucket_size 64;
  13. sendfile on;
  14. keepalive_timeout 65;
  15.  
  16. server {
  17. listen 80;
  18. #CHANGE THESE LINES##########
  19. server_name localhost;
  20. root /nginx/www/organizr/html;
  21. #############################
  22. index index.php index.html index.htm;
  23. error_page 400 401 403 404 405 408 500 502 503 504 /?error=$status; #error page
  24. location ~ \.php$ {
  25. fastcgi_pass 127.0.0.1:9000;
  26. fastcgi_index index.php;
  27. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  28. include fastcgi_params;
  29. }
  30. location ~ /auth-(.*) {
  31. internal;
  32. rewrite ^/auth-(.*) /api/?v1/auth&group=$1;
  33. }
  34.  
  35. location /monitorr {
  36. root /nginx/www;
  37. autoindex on;
  38. index index.php;}
  39. location ~ .php$ {
  40. include fastcgi_params;
  41. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  42. fastcgi_pass 127.0.0.1:9000;
  43. fastcgi_index index.php;
  44. }
  45.  
  46. }
  47. include /nginx/conf/rp-subfolder.conf;
  48. }
  49. include /nginx/conf/rp-subdomain.conf;
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement