当要部署多个web程序时,先将web程序分文件夹到html,
2 修改nginx.conf
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
# include mime.types;
#include conf-test/test_web.conf;
#default_type application/octet-stream;
root F:/softDev/nginx-1.8.1;
server {
listen 80;
server_name webthree.com;
location / {
index index.php index.html index.htm;
proxy_pass https://www.kugou.com/;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
}