| 1234567891011121314151617181920212223 |
- # alien-website 官网(Vue 静态站)
- # 文件名以 00- 开头,确保在 conf.d 中先于 ailen.shop.h5.conf、frontend.conf 加载,
- # 同名 server_name 时本配置优先生效,无需修改其他核心 conf。
- server {
- listen 80;
- server_name ailien.shop www.ailien.shop;
- return 301 https://$host$request_uri;
- }
- server {
- listen 443 ssl;
- server_name ailien.shop www.ailien.shop;
- ssl_certificate /etc/nginx/ssl/ailien.shop.pem;
- ssl_certificate_key /etc/nginx/ssl/ailien.shop.key;
- location / {
- root /alien_test/nginx/html/alien_website;
- index index.html index.htm;
- try_files $uri $uri/ /index.html;
- }
- }
|