|
|
第二个站点配置完打开是welcome?
- server {
- listen 80;
- server_name a.com;
- rewrite ^ https://$server_name$request_uri? permanent;
- }
- server {
- listen 443 ssl http2;
- server_name a.com www.a.com;
- ssl on;
- ssl_certificate /root/.acme.sh/a.com/fullchain.cer;
- ssl_certificate_key /root/.acme.sh/a.com/a.com.key;
- location / {
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header Host $http_host;
- proxy_pass http://127.0.0.1:8088;
- }
- }
- server{
- listen 80;
- server_name b.com;
- root /home/www/b;
- index index.html index.htm;
- location \ {
- }
- }
复制代码 |
|