fix nginx install
This commit is contained in:
10
install.sh
10
install.sh
@@ -73,14 +73,14 @@ server {
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_set_header Host \\\\\\\$http_host;
|
||||
proxy_set_header X-Real-IP \\\\\\\$remote_addr;
|
||||
proxy_set_header X-Forwarded-For \\\\\\\$proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto \\\\\\\$scheme;
|
||||
proxy_set_header Host \\\$http_host;
|
||||
proxy_set_header X-Real-IP \\\$remote_addr;
|
||||
proxy_set_header X-Forwarded-For \\\$proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto \\\$scheme;
|
||||
proxy_pass http://unix:/home/centos/mysite/mysite.sock;
|
||||
}
|
||||
}\" > /etc/nginx/conf.d/mysite.conf
|
||||
sed -i 's/user nginx/user centos nginx/' /etc/nginx/nginx.conf
|
||||
# sed -i 's/user nginx/user centos nginx/' /etc/nginx/nginx.conf
|
||||
systemctl restart nginx
|
||||
systemctl status nginx" > nginxsetup.sh
|
||||
|
||||
|
||||
Reference in New Issue
Block a user