首页 > 编程知识 正文

站群模式独立站超级vps管理器,nginx反向代理node

时间:2023-05-04 15:52:21 阅读:160919 作者:2763

配置

tp5环境动听的小蘑菇

server { listen 80; server_name logo.lxx123.club; # 注意根目录的权限,否之403 root /vhs/www/phpzcool/public/; index index.html index.htm index.php;# 隐藏index.php location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=/$1 last; break; } } location ~ ^/.+.php { fastcgi_index index.php; fastcgi_split_path_info ^(.+.php)(/.*)$; fastcgi_param SCRIPT_FILENAME $request_filename; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; include fastcgi_params; # 默认的fpm端口 fastcgi_pass 127.0.0.1:9000; }}

html动听的小蘑菇

server { listen 80; server_name love.lxx123.club; root /vhs/www/lovetree; index index.html index.htm;}

一般php环境

server { listen 80; server_name vps.lxx123.club; root /vhs/www/dbninja; index index.html index.htm index.php; location ~ ^/.+.php { fastcgi_index index.php; fastcgi_split_path_info ^(.+.php)(/.*)$; fastcgi_param SCRIPT_FILENAME $request_filename; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; include fastcgi_params; fastcgi_pass 127.0.0.1:9000; }}

phalcon

server { listen 80; server_name 192.168.1.114; root /var/www/phalcon/public/; index index.html index.htm index.php; location / { try_files $uri $uri/ /index.php?_url=$uri&$args; } location ~ ^/.+.php { fastcgi_index index.php; fastcgi_split_path_info ^(.+.php)(/.*)$; fastcgi_param SCRIPT_FILENAME $request_filename; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; include fastcgi_params; fastcgi_pass 127.0.0.1:9000; } location ~ /.ht { deny all; }}

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。