nginx

server {
server_name sso;
listen 8088;
location / {
proxy_pass http://淡定44:2000;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}

server {
listen 443;
ssl_certificate /data/nginx/certificate/hien.pem;
ssl_certificate_key /data/nginx/certificate/himen.key;
server_name ss;
location / {
proxy_pass http://打的245:5000;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}

 

 

 

 

 

server {
listen 80;
server_name www.app.asia app.asia appchina.cn www.appchina.cn appchina.com www.appchina.com appchina.hk www.appchina.hk wp.rakeq.com;
root /data/web/appwebsite;
index index.php index.html;
access_log /var/log/nginx/appwebsite.access.log;
error_log /var/log/nginx/appwebsite.error.log;

location / {
try_files $uri $uri/ /index.php?$query_string;
}

location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi.conf;
}
}

posted @ 2017-08-25 16:34  Pomme_king  阅读(127)  评论(0编辑  收藏  举报