差别
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录前一修订版后一修订版 | 前一修订版 | ||
project:yixue:web [2022-07-26 09:33] – [部署服务器] goldentianya | project:yixue:web [2022-07-26 21:08] (当前版本) – [部署服务器] goldentianya | ||
---|---|---|---|
行 12: | 行 12: | ||
编译 | 编译 | ||
<code | download> | <code | download> | ||
- | ionic build --prod -- --base-href | + | ionic build --prod -- --base-href |
cp -r www/* ../ | cp -r www/* ../ | ||
</ | </ | ||
行 74: | 行 74: | ||
</ | </ | ||
+ | ++++ 服务器设置 | | ||
+ | <code | download> | ||
+ | server { | ||
+ | listen 80; | ||
+ | listen [::]:80; | ||
+ | server_name | ||
+ | root / | ||
+ | index index.html index.htm; | ||
+ | |||
+ | location / { | ||
+ | try_files $uri $uri/ =404; | ||
+ | } | ||
+ | } | ||
+ | |||
+ | =================================== | ||
+ | |||
+ | |||
+ | server { | ||
+ | | ||
+ | root / | ||
+ | index index.html index.htm; | ||
+ | |||
+ | | ||
+ | try_files $uri $uri/ =404; | ||
+ | } | ||
+ | |||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | } | ||
+ | |||
+ | server { | ||
+ | if ($host = huahe.simperator.com) { | ||
+ | return 301 https:// | ||
+ | } # managed by Certbot | ||
+ | |||
+ | |||
+ | listen 80; | ||
+ | listen [::]:80; | ||
+ | server_name | ||
+ | return 404; # managed by Certbot | ||
+ | } | ||
+ | </ | ||
+ | ++++ | ||