Linux-Nginx訪問日誌

nginx當遇到分號時,纔會認爲配置結束。 日誌格式: vim /usr/local/nginx/conf/nginx.conf //搜索log_format 白框中,爲日誌格式的名字,能夠隨便定義。此處定義什麼,以後引用時,就定義什麼。 日誌定義格式: 除了在主配置文件nginx.conf裏定義日誌格式外,還須要在虛擬主機配置文件中增長(日誌路徑) access_log /tmp/1.log c
相關文章
相關標籤/搜索