In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Phalcon project
Oneinstack environment lnmp.
Configuration file:
/ usr/local/nginx/conf/vhost/dldh.ccc.conf
Automatically generated.
Question:
Except for the home page, nothing else can be opened, and the style file can not be opened either.
Http://dldh.ccc/index.php/back/css/bootstrap.min.css
Http://dldh.ccc/index.php/backend/index/index
Du Bao: Access denied.
Solution:
The amendments are as follows.
Server {listen 80; server_name dldh.ccc; access_log off; index index.html index.htm index.php; root / web/dldh/public; try_files $uri $uri/ @ rewrite; # add the sentence location @ rewrite {# add the sentence rewrite ^ / (. *) $/ index.php?_url=/$1; # add this sentence} # include / usr/local/nginx/conf/rewrite/none.conf # Note: # error_page 404 / 404.html; # error_page 502 / 502.html; location ~ [^ /]\ .php (/ | $) {# fastcgi_pass remote_php_ip:9000; fastcgi_pass unix:/dev/shm/php-cgi.sock; fastcgi_index index.php; include fastcgi.conf; fastcgi_split_path_info ^ (. +\ .php) (. *) $ # add the sentence fastcgi_param PATH_INFO $fastcgi_path_info; # add this sentence} location. *\. (gif | jpg | jpeg | png | bmp | swf | flv | mp4 | ico) ${expires 30d; access_log off;} location ~. *\. (js | css)? ${expires 7d; access_log off;} location ~ /\ .ht {deny all;}}
Reference:
Detailed explanation of supporting PATH_INFO under nginx [1]
Https://blog.csdn.net/hanzengyi/article/details/53483171
Simply configure nginx to support pathinfo
Https://www.cnblogs.com/kzfbk/p/7302623.html
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.