Advertisement
deedspool

Untitled

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