亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊(cè) 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫(kù)
最近訪問(wèn)板塊 發(fā)新帖
查看: 4135 | 回復(fù): 4
打印 上一主題 下一主題

[Web] 求助:apache地址重寫(xiě)轉(zhuǎn)換成nginx地址重寫(xiě)問(wèn)題! [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2013-07-15 17:15 |只看該作者 |倒序?yàn)g覽
我原來(lái)用的是apache,聽(tīng)說(shuō)nginx的抗并發(fā)能力比較強(qiáng),故改換成了nginx,但是改完后發(fā)現(xiàn)二級(jí)頁(yè)面和子頁(yè)面打開(kāi)都出現(xiàn)404 Not Found錯(cuò)誤。詢問(wèn)得知,這是因?yàn)閍pache的rewrite規(guī)則和nginx的不一樣。我是第一次用nginx,完全不懂nginx下的rewrite怎么寫(xiě),特把我在apache下的.htaccess粘貼如下,希望有高手能幫我改為nginx的,謝謝。!


DirectoryIndex index.html index.htm index.php index.php5

Options -Indexes
ErrorDocument 404 /error.html
ErrorDocument 403 /error.html
order deny,allow

RewriteEngine on
#RewriteCond %{HTTP_REFERER} !^$ [NC]
#RewriteRule .*\.(gif|jpg|js)$ /error.html [R,NC,L]
#RewriteCond %{QUERY_STRING}^wd=(.+)$

RewriteRule ^/proxy/(.*)$ http://$1 [P,L]

RewriteBase /

RewriteRule ^error.html$ error.php [NC]
RewriteRule ^notice.html$ notice.php [NC]
RewriteRule ^nopost.html$ nopost.php [NC]
RewriteRule ^noconsult_([\d]+).html$ noconsult.php?lawyerid=$1 [NC]
RewriteRule ^index.html$ index.php [NC]
RewriteRule ^top_([1-5]).html$ top.php?type=$1 [NC]
RewriteRule ^top_([1-5])_([\d]+).html$ top.php?pageIndex=$2&type=$1 [NC]
RewriteRule ^area/([a-z|A-Z|2]+).html$ arealists.php?areaName=$1 [NC]
RewriteRule ^area/([a-z|A-Z|2]+)_([1-5]).html$ arealists.php?areaName=$1&type=$2 [NC]
RewriteRule ^area/([a-z|A-Z|2]+)_([1-5])_([0-9]+).html$ arealists.php?areaName=$1&type=$2&pageIndex=$3 [NC]


RewriteRule ^sort/([a-z|A-Z]+).html$ catelists.php?sortName=$1 [NC]
RewriteRule ^sort/([a-z|A-Z]+)_([1-5]).html$ catelists.php?sortName=$1&type=$2 [NC]
RewriteRule ^sort/([a-z|A-Z]+)_([1-5])_([0-9]+).html$ catelists.php?sortName=$1&type=$2&pageIndex=$3 [NC]
RewriteRule ^sort/([a-z|A-Z]+)/([a-z|A-Z]+).html$ catelists.php?sortName=$1&className=$2 [NC]
RewriteRule ^sort/([a-z|A-Z]+)/([a-z|A-Z]+)_([1-5]).html$ catelists.php?sortName=$1&className=$2&type=$3 [NC]
RewriteRule ^sort/([a-z|A-Z]+)/([a-z|A-Z]+)_([1-5])_([0-9]+).html$ catelists.php?sortName=$1&className=$2&type=$3&pageIndex=$4 [NC]

RewriteRule ^post/public.html$ postconsultopen.php [NC]
RewriteRule ^post/public_([a-z|A-Z|0-9|=|/]+).html$ postconsultopen.php?title=$1 [NC]
RewriteRule ^post/oneto_([\d]+).html$ postconsultone.php?lawyerid=$1 [NC]
RewriteRule ^ask/([\d]+).html$ consultview.php?consultId=$1 [NC]
RewriteRule ^ask/([\d]+)_([\d]+).html$ consultview.php?consultId=$1&pageIndex=$2 [NC]
RewriteRule ^search/wd=(.*?)$ search.php?keyword=$1 [NC]
RewriteRule ^search/wd([\d]+)=(.*?)$ search.php?keyword=$2&pageIndex=$1 [NC]
RewriteRule ^msg/p_(.*?).html$ msggoodopen.php?cid=$1 [NC]
RewriteRule ^msg/o_(.*?).html$ msggoodone.php?cid=$1 [NC]

RewriteRule ^user/([\d]+).html$ userinfo.php?userId=$1 [NC]
RewriteRule ^affiche/([\d]+).html$ affiche.php?afficheId=$1 [NC]

#######cooper#######
RewriteRule ^zt/20090820dasai/index.html$ cooper/china/zt_20090820dasai.html [NC]
RewriteRule ^lstds.html$ cooper/china/lsq/index.php [NC]
RewriteRule ^listlogs.html$ cooper/china/lsq/index.php?action=listlogs [NC]
RewriteRule ^listlogs_([0-9]+).html$ cooper/china/lsq/index.php?action=listlogs&page=$1 [NC]
RewriteRule ^listlogs_order_([1-2]).html$ cooper/china/lsq/index.php?action=listlogs&order=$1 [NC]
RewriteRule ^listlogs_order_([1-2])_([0-9]+).html$ cooper/china/lsq/index.php?action=listlogs&order=$1&page=$2 [NC]
RewriteRule ^listlogs_types_([1-2]).html$ cooper/china/lsq/index.php?action=listlogs&types=$1 [NC]
RewriteRule ^listlogs_types_([1-2])_([0-9]+).html$ cooper/china/lsq/index.php?action=listlogs&types=$1&page=$2 [NC]
RewriteRule ^listlogs_types_([1-2])_([1-3]).html$ cooper/china/lsq/index.php?action=listlogs&types=$1&td=$2 [NC]
RewriteRule ^listlogs_types_([1-2])_([1-3])_([0-9]+).html$ cooper/china/lsq/index.php?action=listlogs&types=$1&td=$2&page=$3 [NC]

RewriteRule ^index_consult.html$ cooper/china/index_china.php?action=consult [NC]
RewriteRule ^index_article.html$ cooper/china/index_china.php?action=article [NC]
RewriteRule ^index_search.html$ cooper/china/index_china.php?action=consult_search [NC]

論壇徽章:
0
2 [報(bào)告]
發(fā)表于 2013-07-16 08:29 |只看該作者
有人給點(diǎn)指點(diǎn)嗎?????????

論壇徽章:
381
CU十二周年紀(jì)念徽章
日期:2014-01-04 22:46:58CU大;照
日期:2013-03-13 15:32:35CU大;照
日期:2013-03-13 15:38:15CU大;照
日期:2013-03-13 15:38:52CU大;照
日期:2013-03-14 14:08:55CU大;照
日期:2013-04-17 11:17:19CU大;照
日期:2013-04-17 11:17:32CU大;照
日期:2013-04-17 11:17:37CU大;照
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大;照
日期:2013-04-17 11:17:52CU大;照
日期:2013-04-17 11:17:56
3 [報(bào)告]
發(fā)表于 2013-07-16 09:18 |只看該作者
你去wiki.nginx.org看看rewrite的文檔,應(yīng)該有例子的,嘗試下

論壇徽章:
0
4 [報(bào)告]
發(fā)表于 2013-07-16 09:23 |只看該作者
謝謝chenyx。!:wink:

論壇徽章:
0
5 [報(bào)告]
發(fā)表于 2013-07-19 12:55 |只看該作者
fikker 反向代理服務(wù)器的轉(zhuǎn)向管理功能可以完成樓主的需求的,全界面化的配置管理,無(wú)需編譯,安裝使用超簡(jiǎn)單,支持linux版本和windows版本,可以下載安裝試用下,

1、轉(zhuǎn)向管理特性說(shuō)明:

轉(zhuǎn)向管理能夠做什么?
a、重定向(Redirect),利用 HTTP 協(xié)議 302 狀態(tài),將瀏覽器當(dāng)前訪問(wèn)地址重定向到其它訪問(wèn)地址。
b、偽靜態(tài)(Rewrite),將用戶訪問(wèn)的靜態(tài)地址(html/htm)轉(zhuǎn)換成源站能夠處理的動(dòng)態(tài)地址(php/aspx/jsp等)。 注:屬于高級(jí)應(yīng)用。
c、Ajax 跨域,將 Ajax 跨域請(qǐng)求交給 Fikker 代理完成。注:屬于高級(jí)應(yīng)用。

Fikker網(wǎng)站緩存是一款面向 IDC/CDN/站長(zhǎng) 的 專業(yè)級(jí) 網(wǎng)站緩存(WebCache)和 反向代理服務(wù)器軟件(Reversed Proxy Server)。
您需要登錄后才可以回帖 登錄 | 注冊(cè)

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號(hào)-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號(hào):11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國(guó)互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過(guò)ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請(qǐng)注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP