cd /etc
cd nginx
cd sites-enabled
vim 配置文件(vim siyin.orange-socail.com)
server {
listen 80;
server_name siyin.orange-social.com;
access_log /var/log/nginx/siyin.orange-social.com/access.log;
error_log /var/log/nginx/siyin.orange-social.com/error.log;
location / {
proxy_pass http://localhost:33043;
}
}
sudo w !
sudo mkdir -p /var/log/nginx/siyin.orange-socail.com/
sudo chown -R www-data:adm /var/log/nginx/siyin.orange-socail.com/
sudo nginx -t
sudo service nginx restart