sclix webaccess is available but all other vhosts not

Discuss installation of Scalix software

Moderators: ScalixSupport, admin

Hiob86
Posts: 92
Joined: Thu Sep 20, 2007 3:43 am
Contact:

sclix webaccess is available but all other vhosts not

Postby Hiob86 » Thu Sep 20, 2007 3:52 am

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??

jaime.pinto
Scalix Star
Scalix Star
Posts: 709
Joined: Fri Feb 23, 2007 6:50 pm
Location: Toronto - Canada

Postby jaime.pinto » Thu Sep 20, 2007 9:06 am

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.
Image Jaime
||||||||||||||||||||||||||||||||||||||||

Hiob86
Posts: 92
Joined: Thu Sep 20, 2007 3:43 am
Contact:

Postby Hiob86 » Thu Sep 20, 2007 9:53 am

yes tomcat is using port 80.

edecker1

Same problem

Postby edecker1 » Fri Sep 21, 2007 9:51 am

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.

Hiob86
Posts: 92
Joined: Thu Sep 20, 2007 3:43 am
Contact:

Postby Hiob86 » Sat Sep 22, 2007 11:01 am

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.

Hiob86
Posts: 92
Joined: Thu Sep 20, 2007 3:43 am
Contact:

Postby Hiob86 » Tue Sep 25, 2007 9:07 am

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


Return to “Installation”



Who is online

Users browsing this forum: No registered users and 3 guests

cron