cancel
Showing results for 
Search instead for 
Did you mean: 

redirect to http://localhost:8080/alfresco

xeonyk
Champ in-the-making
Champ in-the-making
I already install alfresco and default to access web client is http://localhost:8080/alfresco,
but when i type http://localhost:8080 it cause error HTTP Status 500

i want to ask how can i redirect to http://localhost:8080/alfresco when i type http://localhost:8080?
3 REPLIES 3

tvaughan77
Champ in-the-making
Champ in-the-making
You can probably just create an index.jsp and drop it in Tomcat's ROOT webapp.  The Index.jsp can do something like response.sendRedirect(string) from the HttpServletResponse (which is an implicit variable addressed in a JSP simply as
"response")

I personally haven't tried this, so lemme know if it works and maybe post the JSP in code block if you get it working.

Good luck,
Tom

tvaughan77
Champ in-the-making
Champ in-the-making
Actually, I got curious, so I did this myself. . .in Tomcat 6, there's no "ROOT" webapp directory by default, but you can still just create one:

1) cd $ALF_HOME/tomcat/webapps
2) mkdir ROOT
3) vi ROOT/index.jsp

<%
response.sendRedirect("http://localhost:8080/alfresco");
%>

That's it.

vinaxwater
Champ in-the-making
Champ in-the-making
Dear friend,

You can search code redirect with HTML. Location for this code is: /path/tomcat/webapps/ROOT/index.html (e.x: http://www.ecm.ntis.vn >> view source for code)

Regards.