Commit 574f7d97 authored by Kunkka王辉's avatar Kunkka王辉 😲

验证访问

parent feea709b
#!/bin/bash #!/bin/bash
# 部署所有的应用 # 部署所有的应用
mkdir /etc/nginx/php if [ ! -d /etc/nginx/php ]; then
mkdir /etc/nginx/php
fi
cat <<EOF >/etc/nginx/php/$PHP_HOST.conf cat <<EOF >/etc/nginx/php/$PHP_HOST.conf
location ~ \.php$ { location ~ \.php$ {
fastcgi_pass $PHP_HOST:9000; fastcgi_pass $PHP_HOST:9000;
...@@ -179,11 +181,10 @@ server { ...@@ -179,11 +181,10 @@ server {
} }
location ^~ /subapp/userInfo/ { location ^~ /subapp/userInfo/ {
root /app/www/dwp/subapp/userInfo;
index index.html;
proxy_pass http://$HOST:$VUE_USERINFO_PORT/; proxy_pass http://$HOST:$VUE_USERINFO_PORT/;
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for; try_files \$uri \$uri/ /index.html;
proxy_set_header Host \$host;
proxy_set_header X-Real-Ip \$remote_addr;
proxy_set_header X-Ngnix-Proxy true;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment