fix nginx install

This commit is contained in:
ducoterra
2018-09-12 11:42:04 -04:00
parent 900df82f30
commit 0c179b1f32

View File

@@ -73,14 +73,14 @@ server {
} }
location / { location / {
proxy_set_header Host \\\\\\\$http_host; proxy_set_header Host \\\$http_host;
proxy_set_header X-Real-IP \\\\\\\$remote_addr; proxy_set_header X-Real-IP \\\$remote_addr;
proxy_set_header X-Forwarded-For \\\\\\\$proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For \\\$proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto \\\\\\\$scheme; proxy_set_header X-Forwarded-Proto \\\$scheme;
proxy_pass http://unix:/home/centos/mysite/mysite.sock; proxy_pass http://unix:/home/centos/mysite/mysite.sock;
} }
}\" > /etc/nginx/conf.d/mysite.conf }\" > /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 restart nginx
systemctl status nginx" > nginxsetup.sh systemctl status nginx" > nginxsetup.sh