快捷菜单
常用功能一站直达
更多功能请点顶栏「快捷菜单」

当把teek网站托管到eo Pages上,且绑定域名后,没法在次域名上使用其它服务了?
例如之前的时间轴功能?
1 location /time-line {
2 alias /root/time-line;
3 index index.html index.htm;
4 } 
那只能停掉一个子域名,使用这个子域名来提供服务了。
1one.onedayxyy.cn
1[root@wiki conf.d]# cat one.onedayxyy.cn.conf
2server {
3 listen 80;
4 server_name one.onedayxyy.cn;
5 #配置https重定向
6 return 301 https://$host$request_uri;
7}
8
9server {
10 gzip on;
11 gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
12
13
14 listen 443 ssl;
15 server_name one.onedayxyy.cn;
16
17 root /root/time-line;
18 location / {
19 index index.html index.htm;
20
21 }
22
23
24
25 ssl_certificate /etc/letsencrypt/live/onedayxyy.cn/fullchain.pem;
26 ssl_certificate_key /etc/letsencrypt/live/onedayxyy.cn/privkey.pem;
27
28 ssl_session_timeout 5m;
29 ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
30 ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
31 ssl_prefer_server_ciphers on;
32 add_header Strict-Transport-Security "max-age=31536000";
33
34 access_log /var/log/nginx/onedayxyy.cn.https.log;
35}结束。
日历 · 精选 · 友链 · 更多
如果内容对你有帮助,欢迎请我喝杯咖啡 ☕



One的公众号
爱折腾博客的小白