Tomcat: Restrict access to localhost for /just one/ webapp

前端 未结 3 1103
旧巷少年郎
旧巷少年郎 2021-02-05 20:16

I\'m running Tomcat 6 to serve several web apps, most of which are public-facing. But I\'d like to restrict access to just one webapp, allowing connections only from l

3条回答
  •  北海茫月
    2021-02-05 21:03

    Goto following path: C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\Catalina\localhost\

    Under this path you find " manager.xml " file.

    Edit " manager.xml " file,with following content:

      
    
      
    

    ****** save and run server....You got it. NOTE : 127.0.0.1 MEANS YOUR SYSTEM IP 10.100.1.2 -THIS IS YOUR FRIEND

提交回复
热议问题