cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco DNS

ivan
Champ in-the-making
Champ in-the-making
Hi,
I need to redirect
http://myipadress.com:8080/alfresco > alf.mydomain.com
http://myipadress.com:8080/share > share.mydomain.com
(alfresco is running on tomcat)

should i create some redirection from apache (if it make sense…) or resolve this "inside" tomcat….i've been trying some redirecton patterns for apache but without success Smiley Sad

thanx.
5 REPLIES 5

mabayona
Champ on-the-rise
Champ on-the-rise
Definitly in apache.

For the connection between apache and tomcat use mod_jk to do the port mapping (8080–>80).

ivan
Champ in-the-making
Champ in-the-making
Definitly in apache.

For the connection between apache and tomcat use mod_jk to do the port mapping (8080–>80).

thanx for answering… i followed this instructions http://agiletesting.blogspot.com/2007/05/apache-virtual-hosting-with-tomcat-and.html and http://www.alwayssunny.com/blog/?p=174 but end up only with Service Temporarily Unavailable on apache Smiley Sad … do you know for some other tutorial which could be useful.

ivan
Champ in-the-making
Champ in-the-making
i also read here http://rimuhosting.com/mod_jk2_and_mod_proxy_ajp.jsp

that for a newer distro (fc5, centos 5, etch) i should use mod_proxy and for older versions mod_jk2 module

ivan
Champ in-the-making
Champ in-the-making
still no progress…

for ie.

if i use

<VirtualHost *>
        ServerName              share.mydomain.com
        RedirectMatch permanent (/.*) http://myipaddress:8080/share$1
</VirtualHost>

i can login into share…but not sure will this kind of redirection make problems later…

and if i use

<VirtualHost *>
ServerName share.mydomain.com

JkMount /* ajp13
JkMount /*.jsp ajp13
JkMount /share/* ajp13
DirectoryIndex index.jsp index.html
</VirtualHost>

and

workers.tomcat_home=/opt/Alfresco/tomcat/
workers.java_home=/usr/java/jdk1.6.0_13
ps=/
worker.list=default
worker.ajp13.port=8009
worker.ajp13.host=192.168.6.5
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1

i get empty page

ivan
Champ in-the-making
Champ in-the-making
solved…not sure is it best way, but maybe someone find it useful

<VirtualHost *:80>
ServerName alfshare.mydomain.com
ServerAlias http://www.alfshare.mydomain.com

                ProxyPass               / http://myipaddress:8080/
                ProxyPassReverse        / http://myipaddress:8080/
RewriteEngineOn
RewriteRule^/$ /share/  [R]
#
</VirtualHost>