|
楼主 |
发表于 2023-12-26 14:04:13
|
查看全部
帮忙看一下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;
- }
- }
复制代码
|
|