国产片侵犯亲女视频播放_亚洲精品二区_在线免费国产视频_欧美精品一区二区三区在线_少妇久久久_在线观看av不卡

服務器之家:專注于服務器技術及軟件下載分享
分類導航

云服務器|WEB服務器|FTP服務器|郵件服務器|虛擬主機|服務器安全|DNS服務器|服務器知識|Nginx|IIS|Tomcat|

服務器之家 - 服務器技術 - Nginx - Nginx下支持Thinkphp URL Rewrite的配置示例

Nginx下支持Thinkphp URL Rewrite的配置示例

2019-10-29 17:00Nginx教程網 Nginx

這篇文章主要介紹了Nginx下支持Thinkphp URL Rewrite的配置示例,本文直接給出配置示例,需要的朋友可以參考下

概述

Nginx服務器現在已經成為相當流行的開源Web服務器,很多生產環境也都在使用Nginx服務器。現在做項目大多數時候都是在使用ThinkPHP,但是Nginx默認不支持ThinkPHP的pathinfo模式,需要進行一定的配置。

Nginx配置文件

  1. # 
  2. # The default server 
  3. # 
  4. server { 
  5.   listen    80 default_server; 
  6.   #server_name www.example.com; 
  7.   #charset koi8-r; 
  8.   #access_log logs/host.access.log main; 
  9.   # Load configuration files for the default server block. 
  10.   include /etc/nginx/default.d/*.conf; 
  11.   #location / { 
  12.   #  root  /usr/share/nginx/html; 
  13.   #  index index.html index.htm; 
  14.   #} 
  15.   location / { 
  16.  root      /var/www/project_name; 
  17.  index index.html index.php; 
  18.     if (!-e $request_filename){ 
  19.       rewrite ^(.*)$ /index.php?s=$1 last; 
  20.     } 
  21.   } 
  22.   error_page 404       /404.html; 
  23.   location = /404.html { 
  24.     root  /usr/share/nginx/html; 
  25.   } 
  26.   # redirect server error pages to the static page /50x.html 
  27.   # 
  28.   error_page  500 502 503 504 /50x.html; 
  29.   location = /50x.html { 
  30.     root  /usr/share/nginx/html; 
  31.   } 
  32.   # proxy the PHP scripts to Apache listening on 127.0.0.1:80 
  33.   # 
  34.   #location ~ \.php$ { 
  35.   #  proxy_pass  http://127.0.0.1; 
  36.   #} 
  37.   # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 
  38.   # 
  39.   location ~ \.php$ { 
  40.     root      /var/www/project_name; 
  41.     fastcgi_pass  127.0.0.1:9000; 
  42.     fastcgi_index index.php; 
  43.     fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 
  44.     include    fastcgi_params; 
  45.   } 
  46.   # deny access to .htaccess files, if Apache's document root 
  47.   # concurs with nginx's one 
  48.   # 
  49.   #location ~ /\.ht { 
  50.   #  deny all; 
  51.   #} 

總結

做個備份,方便以后查看:)

延伸 · 閱讀

精彩推薦
主站蜘蛛池模板: 精品视频一区二区三区 | 亚洲免费精品 | 在线精品一区 | 人人爽人人爽人人片av | 欧美日韩不卡 | 极品久久 | 国产精品国产精品国产专区不卡 | 中文字幕成人 | 狠狠干av| 色婷婷综合久久久中字幕精品久久 | 亚洲91精品 | 亚洲精品综合中文字幕 | 亚洲精品a在线观看 | 成人婷婷网色偷偷亚洲男人的天堂 | 成人福利网 | 欧美日韩精品一区二区在线播放 | 91国内在线观看 | 国产白虎 | 久久久久久亚洲精品 | 国产精品久久九九 | 精品久久久久久久久久久久久久 | 日韩视频中文字幕 | 亚洲在看 | 成人在线免费观看视频 | 久久国产精品久久久久久久久久 | 超碰免费观看 | 午夜精品 | 青青草欧美 | 国产视频一区二区视频 | 色橹橹欧美在线观看视频高清 | 国产欧美一区二区三区在线看 | 成人免费在线电影 | 免费在线a| 毛片真人毛毛片毛片 | 亚洲天堂中文字幕 | 国产日韩欧美在线观看 | 国产在线中文字幕 | 久久男人免费视频 | 最近韩国日本免费观看mv免费版 | 亚洲视频自拍 | 欧美成人一区二区 |