Got apache tomcat error that access denied on this file localhost_access_log.2014-08-30.txt?

前端 未结 3 1888
一个人的身影
一个人的身影 2020-12-15 20:03

I installed Apache tomcate on Windows 7 OS. I just installed apache and make it available in eclipse. When i run any simple application on server it will say 404: page not f

3条回答
  •  囚心锁ツ
    2020-12-15 20:45

    Alternatively, you may decide to instruct embedded Tomcat instance to keep its log files in a different location, and outside Windows's native "Program Files" directory. Especially when it comes to latest Windows versions, it is not a good practice to write or keep any file with variable content (i.e. the file that is created or written to at runtime) in program files directory.

    Search for TOMCAT_HOME/conf/server.xml for "AccessLogValve", and specify alternative directory for log files as demonstrated below:

    
    

    The key attribute here is "directory".

提交回复
热议问题