Advertisement
Guest User

nginx.conf

a guest
Jan 28th, 2023
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
autoconf 1.10 KB | Software | 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.     sendfile        on;
  13.     keepalive_timeout  65;
  14.  
  15.     server {
  16.         listen       80;
  17.         #CHANGE THESE LINES##########
  18.         server_name  localhost;
  19.         root  /nginx/www/organizr/html;
  20.         #############################
  21.         index index.php index.html index.htm;      
  22.         error_page 400 401 403 404 405 408 500 502 503 504  /?error=$status;  #error page
  23.         location ~ \.php$ {
  24.             fastcgi_pass   127.0.0.1:9000;
  25.             fastcgi_index  index.php;
  26.             fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
  27.             include        fastcgi_params;
  28.         }
  29.         location /api/v2 {
  30.             try_files $uri /api/v2/index.php$is_args$args;
  31.         }        
  32.         location ~ /auth-(.*) {
  33.             internal;
  34.             rewrite ^/auth-(.*) /api/v2/auth?group=$1;
  35.         }
  36.         include /nginx/conf/rp-subfolder.conf;
  37.     }
  38.     include /nginx/conf/rp-subdomain.conf;
  39. }
  40.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement