-
1. Re: Url rewriting ?
anthonyr Jun 14, 2006 10:53 AM (in response to anthonyr)well,
in fact in need this :
my application is at : http://jupiter:8080/........./myappli.jsp
I would like to run my application by typing : http://www.myappli.jsp for example
I don't know if it is called "url rewriting" .
Where can I find documentation about this ?
thank you -
2. Re: Url rewriting ?
peterj Jun 14, 2006 11:07 AM (in response to anthonyr)If you have a private network and have control over the DNS, you can specify "www.myappli.jsp" as a host name and assign it the same IP address as "jupiter". Or if you need to access this application from only one computer you could change the hosts file on that computer. If you want this to be internet accessible, there is no way because "jsp" is not a valid domain name (as far as I know).
-
3. Re: Url rewriting ?
anthonyr Jun 14, 2006 12:12 PM (in response to anthonyr)
Yes sorry, I made a mistake.
My enterprise has its own "shelterer" for web sites (I don't know the word in english)
So I access the computer which "shelter" the web site :
http://computer:8080/folder/.../WebModule/page.jsp
I would like to make this page acccessible by entering this address :
www.domain.com/page.jsp
Sorry, my english is bad, it's a little hard to explain something clearly
Thank you for your help -
4. Re: Url rewriting ?
osterday Jun 14, 2006 3:10 PM (in response to anthonyr)If you are using the Apache web server in front of JBoss/Tomcat, this is fairly easy to do. Otherwise, I think you need to change your JBoss settings to run Tomcat on the standard http port 80 (if on Linux, has to run as root) and deploy your application as the ROOT context. Another option on Linux is to run JBoss on port 8080 and use iptables to forward port 80 to port 8080 - that way JBoss doesn't need to run as root, but still can "run" on port 80.
Maybe "shelter" would be firewall or proxy? Many times JBoss/Tomcat is "fronted" by the Apache web server so Apache sits "in front" of JBoss/Tomcat and can server static content while using the AJP module to hand off JSP/Servlet requests to JBoss/Tomcat. Also since Apache doesn't run as root, the adds some security if you don't want to forward ports. -
5. Re: Url rewriting ?
peterj Jun 14, 2006 9:15 PM (in response to anthonyr)The other part of the solution is to define a jboss-web.xml file and set the context-root to "/". See http://wiki.jboss.org/wiki/Wiki.jsp?page=ChangeTheContextOfAWAR
-
6. Re: Url rewriting ?
anthonyr Jun 15, 2006 4:08 AM (in response to anthonyr)Ok thank you for your help,
thank you peter for your tips, It solves the problem of the WebModule name.
but I still have the problem of the name of the computer
"shelter" , sorry for the word, in fact the web site will be in my own server, I don't need to pay someone to make my website accessible on the internet, my own server does that.
but my web site is on this computer : jupiter
to access my website we need to write : http://jupiter:8080/folder/WebModuleName/page.jsp
thanks to Peter, now i just need to write :
http://jupiter:8080/folder/page.jsp (if I anderstood well)
but now I need to make the website accessible by writing : http://www.mysite.mydomain.com/page.jsp
My boss told me : look at the document : "url rewriting" but I don't find anything about it
thank you -
7. Re: Url rewriting ?
anthonyr Jun 15, 2006 4:21 AM (in response to anthonyr)
Ok, thanks to you I found this :
http://www.amitysolutions.com.au/documents/URLRewriting-technote.pdf
It seems to be what I want,
But where is the : httpd.conf or equivalent in jboss?
thank you