9399 [Solved] Apache will not start with vhost - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Server & Networking > Web & Network Services

Web & Network Services Discussion related to network/web services such as apache, bind, sendmail, etc.

Reply
 
Thread Tools Display Modes
  #1  
Old August 15th, 2010, 23:20
reppa reppa is offline
Junior Member
 
Join Date: Aug 2010
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Apache will not start with vhost

Hi,

I have some problem with enabling vhost in httpd.conf. Here is my http-vhost.conf file:

Code:
NameVirtualHost *:80

<VirtualHost *:80>
ServerName my.server.no
DocumentRoot /usr/local/www/apache22/data/www
ServerAdmin xx@xx.com
CustomLog /usr/local/www/logs/domain-access_log combined
ErrorLog /usr/local/www/logs/domain-error_log
</VirtualHost>

<VirtualHost *:80>
ServerName my.sever.no
ServerAlias my.server2.no
DocumentRoot /usr/local/www/apache22/data/www/server2
ServerAdmin xx@xx.com
CustomLog /usr/local/www/logs/domain-access_log combined
ErrorLog /usr/local/www/logs/domain-error_log
</VirtualHost>
If I put # in front of Include etc/apache22/extra/httpd-vhosts.conf and go into my.server.no everything is fine and everything goes fast. If I remove the first <VirtualHost>-tag, the my.server2.no works, but everything goes very slow. my.server.no wil not work.

If I enable vhosts, nothing works at all. This is mye hosts file:

Code:
::1                     localhost my.server.no.
127.0.0.1               localhost my.server.no.
77.247.144.138          my.server.no.
127.0.0.1               localhost my.server2.no.
77.247.144.138          localhost my.server2.no.
I feel I have tried everything, but it will not work. Is there anybody that have some tips for what I'm doing wrong?

I'm happy for all tips I get.

reppa

Last edited by DutchDaemon; August 16th, 2010 at 01:42. Reason: proper formatting: http://forums.freebsd.org/showthread.php?t=8816
Reply With Quote
  #2  
Old August 16th, 2010, 19:37
reppa reppa is offline
Junior Member
 
Join Date: Aug 2010
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The problem was wrong path to log files. Next time I will check error log earlier.
Reply With Quote
Reply

Tags
apache, httpd, vhosts

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Solved] apache doesn't start chamba Web & Network Services 5 October 20th, 2009 15:56
[Solved] Apache 2.2 will not start downloader99 Web & Network Services 2 August 6th, 2009 04:33
cannot start apache cpliu903 Web & Network Services 5 April 7th, 2009 13:16
apache start hirohitosan Installing & Upgrading 3 December 9th, 2008 13:16
Apache VHost organization oversize Web & Network Services 7 December 2nd, 2008 20:36


All times are GMT +1. The time now is 21:29.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0