How to prevent direct ip address

2009-01-23 Thread Jaakko Taipale
I have specified domain eg. www.myapp.com and I have tomcat running my machine that have IP address 123.123.123.123. Now I can access to my app with two address: http://www.myapp.com/myapp or http://123.123.123.123/myapp How can I prevent tomcat to response when somebody is trying to access

Re: How to prevent direct ip address

2009-01-23 Thread Kees de Kooter
You could create two virtual hosts, one 'default' that displays some error page and one for your domain that displays the app. Kees On Fri, Jan 23, 2009 at 10:52, Jaakko Taipale jaakko.taip...@dbmanager.fi wrote: I have specified domain eg. www.myapp.com and I have tomcat running my machine

Re: How to prevent direct ip address

2009-01-23 Thread Markus Schönhaber
Jaakko Taipale: I have specified domain eg. www.myapp.com and I have tomcat running my machine that have IP address 123.123.123.123. Now I can access to my app with two address: http://www.myapp.com/myapp or http://123.123.123.123/myapp How can I prevent tomcat to response when