|
5#
樓主 |
發表于 2023-12-26 14:04:13
|
只看Ta
幫忙看一下Nginx配置的對不對,我用phpstudy設置的,面板上的設置和Nginx.conf文件設置好像不一致,root和index應用了面板設置,Nginx.conf文件里的root和index貌似沒生效
- gzip on;
- gzip_min_length 1024;
- gzip_types application/json text/html text/css application/x-javascript application/javascript application/vnd.api+json;
- gzip_disable "MSIE [1-6]\.";
- gzip_comp_level 2;
-
- # another virtual host using mix of IP-, name-, and port-based configuration
- #
- server {
- # listen 80;
- # listen somename:8080;
- # server_name localhost;
-
- location / {
- root WWW/public;
- index index.php index.html index.htm;
- try_files $uri $uri/ /index.php?$query_string;
- }
- }
復制代碼
|
|