cancel
Showing results for 
Search instead for 
Did you mean: 

How to redirect the homepage of alfresco?

minhhacker
Champ in-the-making
Champ in-the-making
Hi all,
I have a question about the way to redirect page in alfresco. I want my users when access alfresco page by http://mysite:8080 will be redirect to http://mysite:8080/alfresco. Does anyone know how to do that?

Many thanks for your support!

Regards,
Minh.Tran
7 REPLIES 7

mikeh
Star Contributor
Star Contributor
Although it's not really recommended, the easiest way is to rename alfresco.war to ROOT.war.

The better way is to front Tomcat with an Apache web server - then your users can access it at http://mysite

Thanks,
Mike

minhhacker
Champ in-the-making
Champ in-the-making
Hi Mike,
Actually i can use iptables to redirect 8080 port to 80 port, and i can go http://mysite/alfresco instead of http://mysite:8080/alfresco. But my case is: when i type http://mysite, it will redirect automatic to http://mysite/alfresco. can you show me in detail how to do that? I'm so sorry because i just a newbie in alfresco.

Thanks for you support!

Regards,
Minh.Tran

mikeh
Star Contributor
Star Contributor
Did you rename the .war file?

Mike

minhhacker
Champ in-the-making
Champ in-the-making
Hi Mike,
After rename alfresco.war to ROOT.war, my alfresco can not run anymore. Here's my log file:

Feb 7, 2009 12:31:10 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Feb 7, 2009 12:31:10 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1658 ms
Feb 7, 2009 12:31:10 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Feb 7, 2009 12:31:10 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
Feb 7, 2009 12:31:10 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive ROOT.war
Feb 7, 2009 12:31:23 PM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "org.apache.myfaces.webapp.StartupServletContextListener" is already configured for this context. The duplicate definition has been ignored.
12:32:01,633  INFO  [config.xml.XMLConfigService$PropertyConfigurer] Loading properties file from class path resource [alfresco/file-servers.properties]
12:32:22,040  INFO  [domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.
12:32:22,857  INFO  [domain.schema.SchemaBootstrap] No changes were made to the schema.
12:32:27,928 UserSmiley Frustratedystem INFO  [repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: /opt/data/alfresco
12:32:28,019 UserSmiley Frustratedystem INFO  [admin.patch.PatchExecuter] Checking for patches to apply …
12:32:28,321 UserSmiley Frustratedystem INFO  [admin.patch.PatchExecuter] No patches were required.
12:32:28,325 UserSmiley Frustratedystem INFO  [repo.module.ModuleServiceImpl] Found 0 module(s).
12:32:28,456 UserSmiley Frustratedystem ERROR [alfresco.smb.protocol] Failed to get local domain/workgroup name, using default of WORKGROUP
12:32:28,456 UserSmiley Frustratedystem ERROR [alfresco.smb.protocol] (This may be due to firewall settings or incorrect <broadcast> setting)
12:32:28,848 UserSmiley Frustratedystem INFO  [service.descriptor.DescriptorService] Alfresco JVM - v1.5.0_16-b02; maximum heap size 1012.625MB
12:32:28,849 UserSmiley Frustratedystem INFO  [service.descriptor.DescriptorService] Alfresco started (Labs): Current version 3.0.0 (Stable 1526) schema 1002 - Installed version 3.0.0 (c 1342) schema 1000
Feb 7, 2009 12:32:47 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive share.war
12:32:53,286  INFO  [web.site.FrameworkHelper] Successfully Initialized Web Framework
Feb 7, 2009 12:32:57 PM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "org.apache.myfaces.webapp.StartupServletContextListener" is already configured for this context. The duplicate definition has been ignored.
12:33:24,685  INFO  [config.xml.XMLConfigService$PropertyConfigurer] Loading properties file from class path resource [alfresco/file-servers.properties]
log4j:WARN Ignoring attempt to add an existent listener.
12:33:41,800  INFO  [domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.
12:33:42,616  INFO  [domain.schema.SchemaBootstrap] No changes were made to the schema.
12:33:47,269 UserSmiley Frustratedystem INFO  [repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: /opt/data/alfresco
12:33:47,382 UserSmiley Frustratedystem INFO  [admin.patch.PatchExecuter] Checking for patches to apply …
12:33:47,719 UserSmiley Frustratedystem INFO  [admin.patch.PatchExecuter] No patches were required.
12:33:47,723 UserSmiley Frustratedystem INFO  [repo.module.ModuleServiceImpl] Found 0 module(s).
12:33:48,173 UserSmiley Frustratedystem INFO  [service.descriptor.DescriptorService] Alfresco JVM - v1.5.0_16-b02; maximum heap size 1012.625MB
12:33:48,174 UserSmiley Frustratedystem INFO  [service.descriptor.DescriptorService] Alfresco started (Labs): Current version 3.0.0 (Stable 1526) schema 1002 - Installed version 3.0.0 (c 1342) schema 1000
Feb 7, 2009 12:34:02 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Feb 7, 2009 12:34:02 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/alfresco] startup failed due to previous errors
12:34:12,486  ERROR [repo.shutdown.ShutdownBackstop] Alfresco terminating via Shutdown Backstop
12:34:12,489  ERROR [repo.shutdown.ShutdownBackstop] Alfresco terminated

mikeh
Star Contributor
Star Contributor
You can only have the ROOT webapp, or the Alfresco one… but not both.

Mike

minhhacker
Champ in-the-making
Champ in-the-making
Hi Mike,
Sorry to disturb again, because i have changed alfresco.war to ROOT.war, after that, i remove alfresco/ folder. But alfresco still start with errors, i check in webapps folder, and i see ROOT/ folder appear. Here's my folder structure in webapps:

root@alfresco:/opt/alfresco/tomcat/webapps# ls -l
total 84132
drwxr-xr-x 11 alfresco alfresco     4096 2009-02-04 18:36 docs
drwxr-xr-x  5 alfresco alfresco     4096 2009-02-04 18:36 examples
drwxr-xr-x  5 alfresco alfresco     4096 2009-02-04 18:36 host-manager
drwxr-xr-x  5 alfresco alfresco     4096 2009-02-04 18:36 manager
drwxr-xr-x 12 alfresco alfresco     4096 2009-02-07 21:51 ROOT
-rw-r–r–  1 alfresco alfresco 70558753 2009-01-19 20:32 ROOT.war
drwxr-xr-x 13 alfresco alfresco     4096 2009-02-04 18:44 share
-rw-r–r–  1 alfresco alfresco 15464936 2009-01-19 20:32 share.war

Regards,
Minh.Tran

mikeh
Star Contributor
Star Contributor
Check you've cleared out the Tomcat work and temp folders.

Also make sure it's the same error you're seeing.

Mike