May 19, 2012, 10:45:04 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Work on Kolab2/Gentoo-2.2 has stopped. The project has been deprecated (see board Kolab2/Gentoo).
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Error on Apache start  (Read 1999 times)
jayk
Jr. Member
**

Karma: 0
Posts: 76



View Profile WWW Email
« on: September 24, 2006, 06:02:29 AM »

When apache was emerged, a 00_default_vhost.conf was created in /etc/apache2/vhosts.d. With this file in place, apache would not serve the kolab directory since the default vhost configuration file was getting loaded. I removed the default file and apache serves the kolab directory, but gives the following errors on startup:

Code:
* Service apache2 starting
Warning: DocumentRoot [/var/www/(fully_qualified_domainname)/htdocs] does not exist
Warning: DocumentRoot [/var/www/(fully_qualified_domainname)/htdocs] does not exist
[Sat Sep 23 22:43:19 2006] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
[Sat Sep 23 22:43:19 2006] [warn] _default_ VirtualHost overlap on port 80, the first has precedence

Some duplicate content in the templates maybe? These are the files in my vhosts.d directory:

10_kolab_base.conf
11_kolab_domain.conf
12_kolab_vhosts.conf
13_kolab_example.conf
kolab-domain-base.include

Cheers,
Jason
Logged
Gunnar Wrobel
Administrator
Sr. Member
*****

Karma: 2
Posts: 331


275141552 gunnarwrobel@yahoo.de gunnarwrobel
View Profile WWW Email
« Reply #1 on: September 24, 2006, 08:00:06 AM »

If you remove the 00_default_vhost.conf file you loose the

Code:
NameVirtualHost *:80

directive which is necessary for name based hosting. If you wish to disable the standard virtual host it is easier to remove the

Code:
-D DEFAULT_VHOST

directive from the /etc/kolab/templates/conf.d-apache2.template file.

But the default virtual host should actually not disturb the kolab virtual host. What did you exactly mean when you said

Quote
"apache would not serve the kolab directory"

Did you see any errors? Are you certain that the host name is resolved correctly to your kolab machine? Assuming your kolab runs in your-domain.com then the admin frontend should be at http://admin.your-domain.com
Logged
jayk
Jr. Member
**

Karma: 0
Posts: 76



View Profile WWW Email
« Reply #2 on: September 24, 2006, 11:38:15 AM »

Ahh. I am new to virtual hosts with apache, so I didn't realize that. I replaced the file and sure enough http://admin.your-domain.com works.

When apache starts though, I do still get the:

Code:
* Service apache2 starting
Warning: DocumentRoot [/var/www/(fully_qualified_domainname)/htdocs] does not exist
Warning: DocumentRoot [/var/www/(fully_qualified_domainname)/htdocs] does not exist
 * Service apache2 started

Should I just symlink (fully_qualified_domainname) to the kolab directory?

Thanks,
Jason
Logged
Gunnar Wrobel
Administrator
Sr. Member
*****

Karma: 2
Posts: 331


275141552 gunnarwrobel@yahoo.de gunnarwrobel
View Profile WWW Email
« Reply #3 on: September 24, 2006, 12:30:49 PM »

I'd suggest running

Code:
mkdir -p /var/www/(fully_qualified_domainname)/htdocs

The files in that directory will be published as a catchall for http://*.(fully_qualified_domainname).

It is up to you what the webserver should present there. So you could also link to the kolab admin directory. In that case somebody visiting your domain will immediately see the admin frontend.

I usually have the public website for the corresponding domain in this dir.

Cheers

Gunnar
Logged
jayk
Jr. Member
**

Karma: 0
Posts: 76



View Profile WWW Email
« Reply #4 on: September 24, 2006, 02:17:38 PM »

That's good to know. I will use it to serve public content then.

Cheers,
Jason
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!