国产成人av电影在线观看第一页,日本高清色WWW网站,国产又色又爽又黄的视频在线观看,亚洲国产精品无码专区在线观看

Board logo

標(biāo)題: [BUG反饋] 發(fā)現(xiàn)一個(gè)問題,不知大家碰到過否 [打印本頁(yè)]

作者: yfgsmyf    時(shí)間: 2013-6-4 21:23     標(biāo)題: 發(fā)現(xiàn)一個(gè)問題,不知大家碰到過否

本帖最后由 yfgsmyf 于 2013-6-4 21:25 編輯

這個(gè)WDCP確實(shí)好用.使用了很久了.一直穩(wěn)定運(yùn)行.

但這幾天發(fā)現(xiàn)了一個(gè)奇怪的問題,我放在網(wǎng)站根目錄的偽靜態(tài)文件.htaccess,居然是可以下載的,在IE里直接可以看到。

但在其它系統(tǒng)里的網(wǎng)站不會(huì)出出現(xiàn)偽靜態(tài)文件能下載,并且能夠直接打開的!

我自己摸索了很久,一直沒有找到解決方法。所以來(lái)求助管理員。這個(gè)問題不知道能不能解決呢?
作者: admin    時(shí)間: 2013-6-4 23:00

這個(gè)文件不能下載的吧?
作者: hyj22327635    時(shí)間: 2013-6-4 23:11

應(yīng)該不可以下載的吧 apache httpd.conf默認(rèn)就是禁止.ht下載的
作者: yfgsmyf    時(shí)間: 2013-6-5 12:19

回復(fù) 2# admin


   可我的卻是能下載,不知道在哪里設(shè)置的。放個(gè)鏈接給老大幫忙測(cè)試一下:http://ft.alloky.com/.htaccess 只要打開這個(gè),就會(huì)自動(dòng)下載!
作者: liangwei    時(shí)間: 2013-6-5 14:07

我試了 不可以下載啊 QQ圖片20130605140654.jpg

圖片附件: QQ圖片20130605140654.jpg (2013-6-5 14:07, 37.7 KB) / 下載次數(shù) 7322
http://www.ks987.com/bbs/attachment.php?aid=3065&k=b589d60fe594712cf14dc74b3813668a&t=1745061053&sid=Z1Z11C


作者: fmd    時(shí)間: 2013-6-5 20:22

RewriteEngine  on
RewriteBase /
RewriteRule ^index.html$ /index.php
#RewriteRule ^static/.*\.(html|xml)$ / [F]
#RewriteCond %{REQUEST_FILENAME} \.(html|xml|json|htm|php|php2|php3|php4|php5|phtml|pwml|inc|asp|aspx|ascx|jsp|cfm|cfc|pl|cgi|shtml|shtm|phtm)$


RewriteRule /zhekou.html$ /index.php/goods/list/promotion/1/ [PT,L,NC]
RewriteRule /pinpai.html$ /index.php/goods/list/brandId/0/ [PT,L,NC]
RewriteRule /jifen.html$ /index.php/goods/list/buyWay/2/ [PT,L,NC]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} (?!^/adm/.*).*
RewriteCond %{REQUEST_URI} (?!^/admin.*).*
RewriteCond %{REQUEST_URI} (?!^/static.*).*
RewriteCond %{REQUEST_URI} (?!^/data.*).*
RewriteCond %{REQUEST_URI} (?!^/admin/js.*).*
RewriteCond %{REQUEST_URI} (?!^/admin/css.*).*
RewriteCond %{REQUEST_URI} (?!^/admin/images.*).*
RewriteCond %{REQUEST_URI} (?!^/plugins.*).*
RewriteCond %{REQUEST_URI} (?!^/ad/.*).*
RewriteCond %{REQUEST_URI} (?!^/wwwroot.*).*
RewriteRule ^(.*)$ /index.php/$1 [PT,L,NC]

RewriteCond %{REQUEST_URI} (?!^/admin/css/.*).*
RewriteRule /admin(.*)$ /index.php/admin$1
作者: jackzhlee    時(shí)間: 2013-6-5 21:49

確實(shí) 我也能下載下來(lái)
作者: hyj22327635    時(shí)間: 2013-6-5 22:18

RewriteEngine  on
RewriteBase /
RewriteRule ^index.html$ /index.php
#RewriteRule ^static/.*\.(html|xml)$ / [F]
#RewriteCond %{REQUEST_FILENAME} \.(html|xml|json|htm|php|php2|php3|php4|php5|phtml|pwml|inc|asp|aspx|ascx|jsp|cfm|cfc|pl|cgi|shtml|shtm|phtm)$


RewriteRule /zhekou.html$ /index.php/goods/list/promotion/1/ [PT,L,NC]
RewriteRule /pinpai.html$ /index.php/goods/list/brandId/0/ [PT,L,NC]
RewriteRule /jifen.html$ /index.php/goods/list/buyWay/2/ [PT,L,NC]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} (?!^/adm/.*).*
RewriteCond %{REQUEST_URI} (?!^/admin.*).*
RewriteCond %{REQUEST_URI} (?!^/static.*).*
RewriteCond %{REQUEST_URI} (?!^/data.*).*
RewriteCond %{REQUEST_URI} (?!^/admin/js.*).*
RewriteCond %{REQUEST_URI} (?!^/admin/css.*).*
RewriteCond %{REQUEST_URI} (?!^/admin/images.*).*
RewriteCond %{REQUEST_URI} (?!^/plugins.*).*
RewriteCond %{REQUEST_URI} (?!^/ad/.*).*
RewriteCond %{REQUEST_URI} (?!^/wwwroot.*).*
RewriteRule ^(.*)$ /index.php/$1 [PT,L,NC]

RewriteCond %{REQUEST_URI} (?!^/admin/css/.*).*
RewriteRule /admin(.*)$ /index.php/admin$1
作者: hyj22327635    時(shí)間: 2013-6-5 22:19

<FilesMatch "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
</FilesMatch>


qq:22327635
作者: yfgsmyf    時(shí)間: 2013-6-7 21:22

急求解決方法。「鱾兝洗!
作者: marquis    時(shí)間: 2013-6-8 00:09

回復(fù) 10# yfgsmyf


   我這里不能下載啊
作者: admin    時(shí)間: 2013-6-8 14:51

如果是用到N+A的話,是可能會(huì)下載的
作者: yfgsmyf    時(shí)間: 2013-6-8 19:24

回復(fù) 12# admin


  確實(shí),用的是N+A的方式,現(xiàn)在切換到A的環(huán)境,就不能下載了!據(jù)說,N+A對(duì)于VPS的負(fù)載性會(huì)有好處,獨(dú)A的話是不是會(huì)讓VPS負(fù)載率高一些呢?
老大!
N+A環(huán)境下能夠優(yōu)化這個(gè)個(gè)BUG嗎?
作者: admin    時(shí)間: 2013-6-8 22:30

這個(gè)是因?yàn)閚ginx認(rèn)不了.htaccess文件的原因

應(yīng)該可以在nginx里設(shè)置下,具體GG下




歡迎光臨 WDlinux官方論壇 (http://www.ks987.com/bbs/) Powered by Discuz! 7.2