Forum LAMS for Tech-Heads - General Forum: Blocking access to the jboss root folder


 
You may request notification for Blocking access to the jboss root folder.
Search: 

1: Blocking access to the jboss root folder
03/13/08 03:50 PM
[ Reply | Forward ]
Our LAMS server (v2.04, running on a Server2003 platform through port 80, therefore the address for the server can be found at http://ipaddress/lams)

I want to hide the http://ipaddress folder with either a .htaccess file or a redirect of some sort. Are there any ideas to help?

And, if a .htaccess file is the go, where in the jboss folder would it go?

Cheers all,

Matt.

Posted by Matthew Topp

2: Re: Blocking access to the jboss root folder
In response to 1 03/13/08 06:06 PM
[ Reply | Forward ]
A .htaccess won't work if you're not using Apache.  I'm attaching an index.html which you can drop into the folder /path/to/jboss/server/default/deploy/jbossweb-tomcat55.sar/ROOT.war - you'll need to overwrite the current one - which should redirect users from http://domain.com to http://domain.com/lams/.  It uses the <meta-refresh> tag to redirect the user's browser.

Posted by Jun-Dir Liew

Attachments:
Reply to first post on this page
Back to LAMS for Tech-Heads - General Forum