|
楼主 |
发表于 2019-6-26 09:22
|
显示全部楼层
修改\\192.168.123.1\AiCard_01\opt\wwwroot\default\application\config.php
- // 兼容PATH_INFO获取
- 'pathinfo_fetch' => ['ORIG_PATH_INFO', 'REDIRECT_PATH_INFO', 'REDIRECT_URL', 'REQUEST_URI'],
复制代码
\\192.168.123.1\AiCard_01\opt\etc\nginx\nginx.conf修改()vhosth目录下会自动覆盖,把引用去掉直接写到这个配置里,以后再开服务记得把配置加进来
- user admin root;
- pid /opt/var/run/nginx.pid;
- worker_processes auto;
- events {
- use epoll;
- multi_accept on;
- worker_connections 1024;
- }
- http {
- charset utf-8;
- include mime.types;
- default_type application/octet-stream;
-
- sendfile on;
- tcp_nopush on;
- tcp_nodelay on;
- keepalive_timeout 60;
-
- client_max_body_size 2000m;
- client_body_temp_path /opt/tmp/;
-
- gzip on;
- gzip_vary on;
- gzip_proxied any;
- gzip_min_length 1k;
- gzip_buffers 4 8k;
- gzip_comp_level 2;
- gzip_disable "msie6";
- gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript image/svg+xml;
- server {
- listen 81;
- server_name localhost;
- root /opt/wwwroot/default/public/;
- #index index.html index.htm index.php tz.php;
- include /opt/etc/nginx/conf/php-fpm.conf;
- location / {
- index index.html index.htm index.php l.php;
- autoindex off;
- }
- #error_page 404 /404.html;
- # redirect server error pages to the static page /50x.html
- #
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- root "D:/phpStudy/WWW/public";
- }
- # proxy the PHP scripts to Apache listening on 127.0.0.1:80
- #
- #location ~ \.php$ {
- # proxy_pass http://127.0.0.1;
- #}
- # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
- #
- location ~ \.php(.*)$ {
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_param PATH_INFO $fastcgi_path_info;
- fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
- include fastcgi_params;
- }
- #otherconf
- }
- server {
- listen 88;
- server_name localhost;
- root /opt/wwwroot/Kodexplorer/;
- index index.html index.htm index.php tz.php;
- include /opt/etc/nginx/conf/php-fpm.conf;
- #otherconf
- }
- #include /opt/etc/nginx/vhost/*.conf;
- }
复制代码 |
|