Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name 3kd.main;
- root /Users/caocuong.tran/Desktop/SEA/3KD/3KD.main;
- client_max_body_size 128M;
- fastcgi_buffers 8 16k;
- fastcgi_buffer_size 32k;
- client_body_buffer_size 128k;
- #root /Users/deeds/Desktop/Sea-Projects/html;
- allow 127.0.0.1;
- deny all;
- index index.html index.php;
- location ~ \.php$ {
- try_files $uri $uri/ /index.php?q=$uri&$args;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_read_timeout 300;
- fastcgi_keep_conn on;
- include /opt/homebrew/etc/nginx/fastcgi_params;
- # fastcgi_pass 127.0.0.1:9000;
- fastcgi_pass unix:/opt/homebrew/var/run/php-fpm/php82.sock;
- index index.html index.php;
- }
- # location ~ ^(/wp-content/themes/bmg) {
- # rewrite ^/(.*)$ https://resource.blockmanmobile.com/web/Yn_event/bmg-editor/$1 last;
- # }
- location / {
- try_files $uri $uri/ /index.php?$args;
- }
- location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
- expires max;
- access_log off;
- log_not_found off;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement