Advertisement
Guest User

Untitled

a guest
Sep 6th, 2019
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 1.83 KB | None | 0 0
  1. server {
  2.     listen                          80;
  3.     server_name                     78.24.216.87;
  4.     root                            /var/www/;
  5.     access_log                      /var/log/nginx/domain-access.log;
  6.     error_log                       /var/log/domain-error.log;
  7.     index                           index.php index.html;
  8.     rewrite_log                     on;
  9.  
  10.     location /socket.io/ {
  11.         proxy_buffering off;
  12.         proxy_ignore_client_abort on;
  13.         proxy_buffer_size   128k;
  14.         proxy_buffers   8 256k;
  15.         proxy_busy_buffers_size   256k;
  16.         proxy_cache off;
  17.         proxy_redirect off;
  18.         proxy_set_header Host $http_host;
  19.         proxy_set_header X-Real-IP $remote_addr;
  20.         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  21.         proxy_pass_header  Cookie;
  22.         proxy_pass_header  Set-Cookie;
  23.         proxy_pass_header  X-Requested-With;
  24.         proxy_pass_header  x-requested-with;
  25.         proxy_pass_header  Access-Control-Allow-Origin;
  26.         proxy_pass_header  Access-Control-Allow-Methods;
  27.         proxy_pass_header  Access-Control-Allow-Headers;
  28.         proxy_read_timeout 600s;
  29.         proxy_send_timeout 600s;
  30.         proxy_pass http://localhost:4045;
  31.         proxy_http_version 1.1;
  32.         proxy_set_header Upgrade $http_upgrade;
  33.         proxy_set_header Connection "upgrade";
  34.       }
  35.  
  36.         location / {
  37.             if (!-e $request_filename) {
  38.                 rewrite ^/(.*)$ /index.php?q=$1 last;
  39.             }
  40.         }
  41.         location ~ \.php$ {
  42.                 try_files $uri =404;
  43.                 fastcgi_split_path_info ^(.+\.php)(.*)$;
  44.                 fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
  45.                 fastcgi_index  index.php;
  46.                 fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
  47.                 include fastcgi_params;
  48.                 fastcgi_ignore_client_abort on;
  49.                 fastcgi_param  SERVER_NAME $http_host;
  50.         }
  51.        
  52.  
  53.  
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement