Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

VirtualHost problem

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Can't turn on Vista feature "IIS Metabase an..  
Author Message
william.hooper

External


Since: Oct 12, 2007
Posts: 18



(Msg. 1) Posted: Fri Oct 12, 2007 6:02 am
Post subject: VirtualHost problem
Archived from groups: alt>apache>configuration (more info?)

Hi, I have read the documents but what the canges I made to
apache.conf have now broken it!

All I did was paste the following at the end of the apache.cong file:

# Ensure that Apache listens on port 80
Listen 80

# Listen for virtual host requests on all IP addresses
NameVirtualHost *:80

<VirtualHost>

DocumentRoot /www/
ServerName www.mydomain.com

# Other directives here

</VirtualHost>

<VirtualHost>

DocumentRoot /www/myotherfolder
ServerName www.myotherdomain.com

# Other directives here

</VirtualHost>


whats wrong with this please?

 >> Stay informed about: VirtualHost problem 
Back to top
Login to vote
william.hooper

External


Since: Oct 12, 2007
Posts: 18



(Msg. 2) Posted: Fri Oct 12, 2007 6:21 am
Post subject: Re: VirtualHost problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I have this qnap linux machine in a little box (no screen, keyboard
etc) that works as a media server and web server. I can't figure out
where the log files are and it does not give you error mesages. When I
made the changes it just refuses to start apache.

I don't understand what you mean about "To start with, the VirtualHost
entry needs to agree with the
NameVirtualHost - <VirtualHost *:80> ".

I just took this code from this eample:

http://httpd.apache.org/docs/1.3/vhosts/examples.html#purename

 >> Stay informed about: VirtualHost problem 
Back to top
Login to vote
phantom

External


Since: Aug 23, 2007
Posts: 21



(Msg. 3) Posted: Fri Oct 12, 2007 10:58 am
Post subject: Re: VirtualHost problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

<william.hooper.TakeThisOut@gmail.com> wrote in message
news:1192194147.057859.74200@e9g2000prf.googlegroups.com...
> Hi, I have read the documents but what the canges I made to
> apache.conf have now broken it!
>
> All I did was paste the following at the end of the apache.cong file:
>
> # Ensure that Apache listens on port 80
> Listen 80
>
> # Listen for virtual host requests on all IP addresses
> NameVirtualHost *:80
>
> <VirtualHost>
<SNIP>

To start with, the VirtualHost entry needs to agree with the
NameVirtualHost -
<VirtualHost *:80>

Further than that, you may want to tell us what you mean by broken and maybe
give us some error messages to work with.
 >> Stay informed about: VirtualHost problem 
Back to top
Login to vote
phantom

External


Since: Aug 23, 2007
Posts: 21



(Msg. 4) Posted: Fri Oct 12, 2007 2:23 pm
Post subject: Re: VirtualHost problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

<william.hooper.DeleteThis@gmail.com> wrote in message
news:1192195298.048892.10290@i38g2000prf.googlegroups.com...
>I have this qnap linux machine in a little box (no screen, keyboard
> etc) that works as a media server and web server. I can't figure out
> where the log files are and it does not give you error mesages. When I
> made the changes it just refuses to start apache.
>
> I don't understand what you mean about "To start with, the VirtualHost
> entry needs to agree with the
> NameVirtualHost - <VirtualHost *:80> ".
>
> I just took this code from this eample:
>
> http://httpd.apache.org/docs/1.3/vhosts/examples.html#purename
>

that example is correct, what you had was wrong.

What I meant... If you have the line:
NameVirtualHost *:80

then the '*:80' bit NEEDS to apppear in your VirtualHost part, as in:
<VirtualHost *:80>
....
</VirtualHost>

not just
<VirtualHost>
....
</VirtualHost>

As for log files, have you tried looking in the usual place -
/var/log/httpd/ ?
 >> Stay informed about: VirtualHost problem 
Back to top
Login to vote
phantom

External


Since: Aug 23, 2007
Posts: 21



(Msg. 5) Posted: Fri Oct 12, 2007 2:25 pm
Post subject: Re: VirtualHost problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

<william.hooper RemoveThis @gmail.com> wrote in message
news:1192195298.048892.10290@i38g2000prf.googlegroups.com...
>I have this qnap linux machine in a little box (no screen, keyboard
> etc) that works as a media server and web server. I can't figure out
> where the log files are and it does not give you error mesages. When I
> made the changes it just refuses to start apache.
>
> I don't understand what you mean about "To start with, the VirtualHost
> entry needs to agree with the
> NameVirtualHost - <VirtualHost *:80> ".
>
> I just took this code from this eample:
>
> http://httpd.apache.org/docs/1.3/vhosts/examples.html#purename
>

having seen your other post, I'd guess that you ended up with a conf file
containing both

Port 80
and
Listen 80

You only need one, remove the other.
 >> Stay informed about: VirtualHost problem 
Back to top
Login to vote
william.hooper

External


Since: Oct 12, 2007
Posts: 18



(Msg. 6) Posted: Sat Oct 13, 2007 8:49 am
Post subject: Re: VirtualHost problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

ah it's all done at last... i just post here to make the thread
complete in case someone ever reads it again on google groups etc.


http://forum.qnap.com/phpbb2/viewtopic.php?t=527&postdays=0&postorder=...&start=

it took me three days but i think i was unlucky.
 >> Stay informed about: VirtualHost problem 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
CGI Problem - Dear Friends, Since downloading/installing the new Apache 2.0.52 version (and I've been away from this for a year now), I have the following problem (while working locally with 127.0.0.1 on a WinXP machine) in my office: I have in my..

another php problem - I to had a problem with php not running on apache2. I tryed the LoadModule php4_module "i:/php-4.3.6-win32/sapi/php4apache2.dll" AddType application/x-httpd-php .php at php.net now apache won't start I saw a message about php4ts.dll should ...

cgi-bin problem - I am running Apache 1.3.14 on Win 98. PHP & Perl are installed and are running correctly. The directory structure is C:/Perl C:/apache/www/cgi-bin C:/apache/www/...<other files and directories> My problem is this: I am trying to use a p...

ssi problem - I was trying to enable ssi on my apache web server. I've edited httpd.conf and add these lines: AddType text/html .shtml AddHandler server-parsed .shtml <font color=purple> ; Options +Includes</font> Despite of this, a...

SSL Problem - Hi, I have a problem with the configuration of Apache. When I start httpd I have this error : --- make_sock: could not bind to address 0.0.0.0:443 no listening sockets available, shutting down --- I want to disable the https because my port 443 is..
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]