Recommended Posts

#

# The following directives define some format nicknames for use with

# a CustomLog directive (see below).

#

LogFormat "%h %l %u %t /"%r/" %>s %b /"%{Referer}i/" /"%{User-Agent}i/"" combined //這行是第415行

LogFormat "%h %l %u %t /"%r/" %>s %b" common

LogFormat "%{Referer}i -> %U" referer

LogFormat "%{User-agent}i" agent

啊...我看不出來要怎麼改= =|||||

鏈接文章
分享到其他網站
最初由 Tiesto 發表

#

# The following directives define some format nicknames for use with

# a CustomLog directive (see below).

#

LogFormat "%h %l %u %t /"%r/" %>s %b /"%{Referer}i/" /"%{User-Agent}i/"" combined .............(論壇訊息:引文過長 恕刪)

把出問題那行remark掉呢?

鏈接文章
分享到其他網站
最初由 Tiesto 發表

我同學叫我把415行/改成\

結果就行了欸

有沒有人可以解釋一下啊@@?

好像本來就沒有/的用法= ="

沒猜錯的話那些\的用途是在Regular Expression裡面用來當Escape character的用途...

讓Apache讀設定的時候不要把那些被"括起來的參數誤以為是整個參數的開始和結束

--

不知道這樣講你會不會懂 Orz

鏈接文章
分享到其他網站

請登入後來留意見

在登入之後,您才能留意見



立即登入