标签:web www 配置 default rip 支持 connect listen PHP编程
下载Nginx包worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 10080;
server_name ly2016.club www.ly2016.club;
root /liuhome/nginx/html;
index index.html index.htm index.php;
location / {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location ~ .php$ {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass 127.0.0.1:19001;
}
include /usr/local/nginx/conf.d/*.conf;
server {
listen 10080 default_server;
servername ;
return 403;
}
}
server {
listen 10080 default_server;
server_name _;
return 403;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass 127.0.0.1:19001;
}
include /usr/local/nginx/conf.d/*.conf;
server {
listen 10080;
server_name svn.ly2016.club;
root /liuhome/nginx/websvn;
index index.html index.htm index.php;
include /usr/local/nginx/conf/default.conf.d/*.conf;
location / {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
include /usr/local/nginx/conf.d/php.conf.bak;
}
server {
listen 10080;
server_name book.ly2016.club;
root /liuhome/nginx/books;
index index.html index.htm index.php;
include /usr/local/nginx/conf/default.conf.d/*.conf;
location / {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
include /usr/local/nginx/conf.d/php.conf.bak;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass 127.0.0.1:19001;
}
标签:web www 配置 default rip 支持 connect listen PHP编程
原文地址:https://blog.51cto.com/liubingjie771/2366273