Page 1 of 1

sclix webaccess is available but all other vhosts not

Posted: Thu Sep 20, 2007 3:52 am
by Hiob86
i have installed scalix on a centos 64bit system. the webaccess is available but all mein other vhhosts not. i always get "HTTP 404 Not Found".

here is my configuration of the vhosts in httpd.conf

#default
<VirtualHost *:80>
ServerAdmin florianb86@web.de
DocumentRoot /var/www/html
ServerName hiob86.game-host.org
</VirtualHost>

#mail
<VirtualHost *:80>
ServerAdmin florianb86@web.de
DocumentRoot /var/opt/scalix/hl/tomcat/webapps
ServerName mail.hiob86.game-host.org
<Directory "/var/opt/scalix/hl/tomcat/webapps">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order Allow,Deny
Allow from all
</Directory>
</VirtualHost>

#phpmyadmin
<VirtualHost *:80>
ServerAdmin florianb86@web.de
DocumentRoot /var/www/html/phpMyAdmin
ServerName phpmyadmin.hiob86.game-host.org
</VirtualHost>

#gallery
<VirtualHost *:80>
ServerAdmin florianb86@web.de
DocumentRoot /var/www/html/gallery/gallery2
ServerName gallery.hiob86.game-host.org
</VirtualHost>

please help

***edit***
If i use the url gallery.hiob86.game-host.org/gallery/gallery2 i can access the site.
the same with phpmyadmin.
it seems that the line DocumentRoot... brings nothing.

any ideas??

Posted: Thu Sep 20, 2007 9:06 am
by jaime.pinto
There is a trick to this. I had the same problem. Basically tomcat is taking over port 80. Start by checking that out. If I have some time this morning I'll post more details.

Posted: Thu Sep 20, 2007 9:53 am
by Hiob86
yes tomcat is using port 80.

Same problem

Posted: Fri Sep 21, 2007 9:51 am
by edecker1
I am habing the same problem, but rather than getting a 404 error i get the default apache page. I am new to the tomcat world and would appreciate any assitance.

Posted: Sat Sep 22, 2007 11:01 am
by Hiob86
i can see in the logfiles that apache is searching the documents like index.html in the general DocumentRoot of apache. he did not accept the DocumentRoot of the virtual host.
maybe this help.

Posted: Tue Sep 25, 2007 9:07 am
by Hiob86
I solved the problem.

the trick is to change the /etc/opt/scalix-tomcat/connector/ajp/instance-*.conf like this way:

<VirtualHost *:80>
ServerName www.youredomain.com
Include /etc/opt/scalix-tomcat/connector/ajp/app-hell.*.conf
</VirtualHost>
<VirtualHost *:443>
ServerName www.youredomain.com
SSLEngine on
SSLProtocol all -SSLv2
SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW
SSLCertificateFile /etc/pki/tls/certs/localhost.crt
SSLCertificateKeyFile /etc/pki/tls/private/localhost.key
Include /etc/opt/scalix-tomcat/connector/ajp/app-hell.*.conf
</VirtualHost>

replace youre domain with * in both VirtualHost commands
and add ServerName www.youredomain.com for both virtual hosts

if your get an error while restarting apache add "NameVirtualHost *:443" to your httpd.conf. this should solve the problem