Change Tomcat Address on my localhost

前端 未结 3 368
不思量自难忘°
不思量自难忘° 2021-02-03 11:51

On my Tomcat, I have an HTML page.

I need to type the following address to make it run:

http://127.0.0.1:8080/BiddingSystem/BiddingSystem.html

but I want

3条回答
  •  伪装坚强ぢ
    2021-02-03 11:59

    I have Eclipse EE and Tomcat7, and I need to run my servlets not at localhost:8080, but on a pretty domain :)

    I have made it this way:

    1. In file %windows%\system32\drivers\etc\hosts add:

      127.0.0.10 tomcat
      
    2. In file %workspace%\Servers\Tomcat 7 at localhost-config\Server.xml

        
        
            
            ...
            
        
    

    Now my Apache Tomcat works fine (I hope) at http://tomcat/ and at same time my Apache2+PHP works at http://localhost/.

提交回复
热议问题