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

前端 未结 3 1889
一个人的身影
一个人的身影 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:40

    It seems that your current user is not having rights on the tomcat folder.

    I also faced the same problem and solved it by giving rights to the logged in user on the tomcat folder.

    For your case :

    Go to >>"C:\Program Files\Apache Software Foundation\Tomcat 7.0" folder Right Click>>Properties>>security Tab

    provide required rights to currently logged in user.

    0 讨论(0)
  • 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:

    <Valve className="org.apache.catalina.valves.AccessLogValve"
           directory="c:\work\tomcat\logs"
           prefix="localhost_access_log." suffix=".log" pattern="common"/>
    

    The key attribute here is "directory".

    0 讨论(0)
  • 2020-12-15 20:47

    1] Open Tomcat C:\Program Files\Apache Software Foundation <br>(Right Click on Tomcat 8.5 ( as per Your Version)<br> →Properties <br> →Select Security Tab <br> →Edit <br> →Select Your System <br> →Check or Allow all the Boxes <br> →Click on Apply <br> →Restart Program

    0 讨论(0)
提交回复
热议问题