Fanfou Wiki

我等采石之人,当心怀建造大教堂之愿景。

用户工具

站点工具


nginx

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

后一修订版
前一修订版
nginx [2021/01/27 09:17] – 创建 adminnginx [2021/02/17 21:16] (当前版本) admin
行 1: 行 1:
 ====== Nginx ====== ====== Nginx ======
-===== PHP 单入口 =====+===== HTTP response codes ===== 
 +[[https://developer.mozilla.org/zh-CN/docs/Web/HTTP/HTTP_response_codes|HTTP response codes - HTTP|MDN]]  \\ 
 +[[https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Status|HTTP 响应代码 - HTTP|MDN]]   
 +   * 301 - 临时重定向 
 +   * 302 - 永久重定向 
 + 
 +===== HTTP Rewrite HTTPS ===== 
 +[[https://nginx.org/en/docs/http/converting_rewrite_rules.html|Converting rewrite rules - nginx.org]]
 <code nginx> <code nginx>
 +server {
 +    listen       80;
 +    server_name  example.org;
 +    return       301 https://www.example.org$request_uri;
 +}
 +</code>
 +
 +
 +===== PHP 单入口 =====
 +[[https://learnku.com/docs/laravel/8.x/installation/9354#62e0b5|Laravel 8 中文文档]]
 +<code nginx .nginx.conf>
 location / { location / {
     try_files $uri $uri/ /index.php?$query_string;     try_files $uri $uri/ /index.php?$query_string;
 +}
 +</code>
 +
 +===== Vue Router =====
 +[[https://router.vuejs.org/zh/guide/essentials/history-mode.html#%E5%90%8E%E7%AB%AF%E9%85%8D%E7%BD%AE%E4%BE%8B%E5%AD%90|HTML5 History 模式 | Vue Router]]
 +<code nginx .ngnix.conf>
 +location / {
 +    try_files $uri $uri/ /index.html;
 } }
 </code> </code>
  
nginx.1611710254.txt.gz · 最后更改: 2021/01/27 09:17 由 admin