VirtualHost in combination with Scalix

Discuss installation of Scalix software

Moderators: ScalixSupport, admin

mveerdon
Posts: 83
Joined: Sat Oct 04, 2008 4:29 am

VirtualHost in combination with Scalix

Postby mveerdon » Mon Feb 09, 2009 2:55 pm

Hi,
I make use of a hosted server on which Scalix is running.

I have domainA.com active on my server (FQDN = user1.hostingprovider.com). The default website is installed on /var/www/html/.
Scalix is running for domainA.com perfectly.

Now I have included a second domainB.comto my Scalix server. Mail is working well, but the website isn't shown.
The site is installed on /var/www/html/domainB/, but when surfing the www.domainB.com the site isn't shown.

I have tried to fix the problem with a different /etc/http/conf/httpd.conf configuration, but nothing seems to work :shock: :?

Can somebody help?

mveerdon
Posts: 83
Joined: Sat Oct 04, 2008 4:29 am

Postby mveerdon » Wed Feb 11, 2009 5:09 am

can somebody help me? :(

My website is already offline for more then 2 weeks. :( :( :oops:

Valerion
Scalix Star
Scalix Star
Posts: 2730
Joined: Thu Feb 26, 2004 7:40 am
Location: Johannesburg, South Africa
Contact:

Postby Valerion » Wed Feb 11, 2009 5:31 am

Look in /etc/opt/scalix-tomcat/connector, the config files there define the vhost (either jk or ajp).

mveerdon
Posts: 83
Joined: Sat Oct 04, 2008 4:29 am

Postby mveerdon » Wed Feb 11, 2009 11:41 am

Valerion,
in both folders the same files are listed, but I dont see any vhost information.

Which file is relevant to edit? Plus which information do I need to include?

ls -ltr
total 36
-rw-r--r-- 1 root root 39 Nov 14 10:55 workers.conf
-rw-r--r-- 1 root root 530 Nov 14 10:55 instance-creatable.conf
-rw-r--r-- 1 root root 28 Nov 14 10:57 app-creatable.webmail.conf
-rw-r--r-- 1 root root 24 Nov 14 10:57 app-creatable.sis.conf
-rw-r--r-- 1 root root 24 Nov 14 10:57 app-creatable.res.conf
-rw-r--r-- 1 root root 22 Nov 14 10:57 app-creatable.m.conf
-rw-r--r-- 1 root root 87 Nov 14 10:57 app-creatable.api.conf
-rw-r--r-- 1 root root 24 Feb 4 19:43 app-creatable.sac.conf
-rw-r--r-- 1 root root 24 Feb 4 19:43 app-creatable.caa.conf

Valerion
Scalix Star
Scalix Star
Posts: 2730
Joined: Thu Feb 26, 2004 7:40 am
Location: Johannesburg, South Africa
Contact:

Postby Valerion » Wed Feb 11, 2009 12:47 pm

You need to edit instance-<hostname>.conf

mveerdon
Posts: 83
Joined: Sat Oct 04, 2008 4:29 am

Postby mveerdon » Wed Feb 11, 2009 12:50 pm

what do i have to include?

<VirtualHost>
ServerName www.domainb.com
ServerAlias domainb.com
DocumentRoot /var/www/domainB.com/
<Directory>
Order Allow,Deny
Allow from All
</Directory>
</VirtualHost>

pinnks
Posts: 83
Joined: Tue Mar 06, 2007 10:56 am
Location: Swindon, UK

Postby pinnks » Sun Feb 22, 2009 12:45 pm

Sorry, this is a bit long but I hope it gives enough info for someone to help me.

I think I have the same problem as above but do not know quite why it has occurred, so before simply adding the lines above I would welcome some assistance.

I have been running the Community Edition with OpenSuse for a couple of years and recently upgraded to OpenSuse 11 and Scalix 11.4. This caused a few problems initially but now seems basically stable. I count myself still very much a beginner when it comes to Linux and Scalix and tend to rely on the Suse GUI to get from A-to-B, though with good guidance I am getting a little more confident in the command line environment...

I have 5 domains and use Scalix to collect mail for each (each member of the family). I had also been running (on Suse 10.1) virtual hosts to allow each domain to host a website with success so that I had www.domain1.com, www.domain2.com etc and I thought I had recreated that in Suse 11 but am now not sure. I certainly had access to the main website but as i had pointed the other index pages at that domain by using re-directs it is possible that the set-up was wrong but not visible...

The other day I purchased another domain and popped it into Scalix without problems. I then set-up a basic web page and went into YAST HTTP Server to add the virtual host to allow me to publish that simple web page AND OH BOY THE FUN BEGAN...

Too many hours later with much head banging and head scratching I managed to get to the point where nothing seemed to work - SAC and Webmail gave me Error 404 and Apache2 would not start. The HTTP service in YAST crashed every time as it could not find /srv/www/htdocs/sis and I read somewhere that that is a Scalix issue. Don't ask me quite what I did as it was one of those iterative processes ending in disaster...

I think Scalix was still running with connectivity through Outlook but don't quote me. It is certainly back up and running in that mode now.

I read somehwere that the problems were "caused" by the fact that Scalix gets confused if there is a webserver and Scalix on the same computer but could not understand teh suggested remedy. I also assume this must be a new issue because it never caused an issue in the past but perhaps that was a fluke.

Anyway, I decided to start from a blank sheet and uninstalled Scalix - retaining message store, database and indexing - and uninstalled Apache2 and the HTTP service in YAST. After a number of attempts I managed to reinstall the non-Scalix parts again and configured them.

So far so good (almost) - 6 virtual hosts defined and 6 homepages accessible. This time each relevant to the domain names so that I could check all was well.

However, I may have missed something in setting up virtual hosts in YAST because I do not seem to have a default host to fall back on if something other than the defined virtual hosts is typed in, i.e. if I type in www.domain1.com I get the index page for that site; if I type in only Domain1.com, or 192.168.1.2 (IP addy of the server) I always get the same other index page, say domain3.com's, displayed whereas I would expect the default "IT works!" page. Can't see what I have done wrong here but might be relevant.

I then turned back to Scalix and did a full install. The server is called "mail" and the FQDN is "mail.domain1.com". This is as it has always been and historically i have accessed SAC and webmail with http://domain1.com/sac etc. Typing that now gives me "Object not found!" Error 404.

If memory serves at some point on the decreasing circle to disaster over the past two days I did have access to SAC etc but only if I installed Scalix from scratch without defining virtual hosts in YAST. To get it I typed http://domain1.com/sac as usual. Go then into YAST and define the virtual hosts and SAC etc are no longer accessible.

The other new "feature" that might be relevant is that once Scalix has been installed, running YAST HTTP Service throws a warning message to the effect that the YAST conf file for Apache has been manaully changed (presumably by Scalix) and changes may be lost, or words to that effect. Press continue and once can confisure hosts; press cancel and the programme ends. Relevant?

At the moment I have the virtual hosts set-up and therefore no access to SAC etc. I can use Outlook to access mail but not of course SAC.

So, do I have a virtual host set-up issue, a Scalix issue as in the thread above, a combination of both or something completely different????

Any help greatly appreciated.

Thanks

Gary


Return to “Installation”



Who is online

Users browsing this forum: No registered users and 4 guests

cron