How? No Googling, for a change !! Just plain common sense (of a techie, ofcourse) (jeez, i m getting vain)
So here's the change you make to your router settings that I already mentioned in my previous post. Under Virtual Server, change the Local port from 8080 (or whatever else) to 0 (zero) A zero number means forward all requests. Do not forget to Save and Reboot.
Then, set the different listening ports for your multitude of servers. I havnt figured out a way of changing Tomcat's port, so I let it remain 8080. I thought it safe to keep IIS on the default (80) port. But I changed the Java Application Server and Apache HTTP as follows:
For Sun Java:
- Go to localhost:4848 (or whatever administrator port u've set up)
- Login with the administrative username and password (which you must have noted down)
- Go to Configuration > HTTP Service > HTTP Listeners > http-listener-1 > Listener port.
- Enter a random port address between 1025 to 65535. I prefer 5282 (JAVA on ur mobile phone keypad) as it is easy to remember
- Save and Logout.
- Go to C:\Program Files\Apache Software Foundation\Apache 2.2\conf\httpd.conf (or whatever is the equivalent conf directory on your system)
- You can open the file with notepad
- Look for the text Listen
- Change the number after that (should be 8080, or 80, before you make the changes) to any number of your choice (between 1025 and 65535)
- I chose 9393, just like that
- Save the file and close.
- http://localhost/
- http://localhost:8080/
- http://localhost:5282/
- http://localhost:9393/
- http://59.182.147.56/
- http://59.182.147.56:8080/
- http://59.182.147.56:5282/
- http://59.182.147.56:9393/
Whew. Finally, I achieved what I set out to achieve. Now I can R.I.P. May god bless my soul. I don't think I'll be posting anytime soon. Cya until then.
No comments:
Post a Comment