Advertisement
deedspool

Nginx

Jan 11th, 2024
1,517
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 1.46 KB | None | 0 0
  1. server {
  2.         listen 80;
  3.         server_name 3kd.main;
  4.  
  5.         root /Users/caocuong.tran/Desktop/SEA/3KD/3KD.main;
  6.  
  7.         client_max_body_size 128M;
  8.         fastcgi_buffers 8 16k;
  9.         fastcgi_buffer_size 32k;
  10.         client_body_buffer_size 128k;
  11.         #root /Users/deeds/Desktop/Sea-Projects/html;
  12.         allow 127.0.0.1;
  13.         deny all;
  14.         index index.html index.php;
  15.  
  16.         location ~ \.php$ {
  17.                 try_files $uri $uri/ /index.php?q=$uri&$args;
  18.                 fastcgi_index               index.php;
  19.                 fastcgi_param               SCRIPT_FILENAME $document_root$fastcgi_script_name;
  20.                 fastcgi_read_timeout        300;
  21.                 fastcgi_keep_conn           on;
  22.                 include                     /opt/homebrew/etc/nginx/fastcgi_params;
  23.  
  24. #               fastcgi_pass                127.0.0.1:9000;
  25.                 fastcgi_pass                unix:/opt/homebrew/var/run/php-fpm/php82.sock;
  26.                 index                       index.html index.php;
  27.         }
  28.  
  29. #       location ~ ^(/wp-content/themes/bmg) {
  30. #                        rewrite ^/(.*)$ https://resource.blockmanmobile.com/web/Yn_event/bmg-editor/$1 last;
  31. #       }
  32.  
  33.         location / {
  34.                 try_files $uri $uri/ /index.php?$args;
  35.         }
  36.  
  37.         location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
  38.                 expires max;
  39.                 access_log off;
  40.                 log_not_found off;
  41.         }
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement