首页
仓库
文档
nginx手册
Docker手册
workerman
Flask
PHP
python
RabbitMQ
其他
Linux
占位1
占位2
目录
##前端nginx ``` server { listen 80; server_name *.666.com; location / { #root html; #index index.html index.htm index.php; proxy_pass http://139.129.xxx.xxx:80; } } ``` ##后端nginx ``` server { listen 80; server_name 111.666.com 139.129.xxx.xxx alias ; location / { root E:/www/jx; index index.html index.htm default.html default.htm index.php ; } autoindex off; include advanced_settings.conf; location ~* .*\/(images|uploads|member|install)\/.*\.(php|php5|phps|asp|aspx|jsp)$ { deny all; } location ~ ^.+\.php { root E:/www/2016-5/zeyu/2baner/jx; fastcgi_pass bakend; fastcgi_index index.php; fastcgi_split_path_info ^((?U).+\.php)(/?.+)$; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; include fastcgi.conf; } } #server 111.666.com end} server { listen 80; server_name 222.666.com 139.129.xxx.xxx alias ; location / { root E:/www/xdz; index index.html index.htm default.html default.htm index.php ; } autoindex off; include advanced_settings.conf; #include expires.conf; location ~* .*\/(images|uploads|member|install)\/.*\.(php|php5|phps|asp|aspx|jsp)$ { deny all; } location ~ ^.+\.php { root E:/www/2016-5/yjzz/3banner/xdz; fastcgi_pass bakend; fastcgi_index index.php; fastcgi_split_path_info ^((?U).+\.php)(/?.+)$; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; include fastcgi.conf; } } #server 222.666.com end} ```