[Feature] It is recommended to separate http and https in nginx site configuration, which is more in line with the standard. #7526
Replies: 4 comments
-
|
Beta Was this translation helpful? Give feedback.
-
如果分开配置,那么所有除 ssl 的配置都要写两份,从逻辑上来讲,是不好处理的。如果有特殊需要,建议还是自行修改配置 |
Beta Was this translation helpful? Give feedback.
-
If configured separately, all configurations except ssl must be written in two copies, which is logically difficult to handle. If you have special needs, it is recommended to modify the configuration yourself. |
Beta Was this translation helpful? Give feedback.
-
将 Issue 转为 Discussion. |
Beta Was this translation helpful? Give feedback.
-
1Panel Version
v1.10.22-lts
Please describe your needs or suggestions for improvements
建议nginx配置把http和https分开来,比如添加hsts的时候,就只需要添加到https上就行,http是不需要加的。
https://www.ssl.org/server-config-generator
server {
listen 80 default_server;
listen [::]:80 default_server;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
Please describe the solution you suggest
No response
Additional Information
No response
Beta Was this translation helpful? Give feedback.
All reactions