Nginx转发配置

Catalogue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

server {
listen 443 ssl; #SSL协议访问端口号为443。此处如未添加ssl,可能会造成Nginx无法启动。
server_name santa.quartz.ren; #将localhost修改为您证书绑定的域名,例如:www.example.com。
root html;
index index.html index.htm;
ssl_certificate conf.d/cert/3714771_wiki.quartz.ren.pem; #将domain name.pem替换成您证书的文件名。
ssl_certificate_key conf.d/cert/3714771_wiki.quartz.ren.key; #将domain name.key替换成您证书的密钥文件名。
ssl_session_timeout 5m;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4; #使用此加密套件。
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; #使用该协议进行配置。
ssl_prefer_server_ciphers on;

# 转发配置内容.
location /xboot/ {
proxy_pass http://127.0.0.1:8888/xboot/;
}
location /home/ {
proxy_pass http://127.0.0.1:8888/home/;
}
location / {
root /home/zhangquanquan/app/santa-admin-front/dist/;
index index.html index.htm;
}
}