Welcome to MobyThreads.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Virtual Host Configuration problems

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Related Topics:
Virtual Host problems - I am running Apache 1.3. and Freebsd 5.0. I have 1 IP with 3 virtual host I want to use. Here is the settings for virtual host in my * *>

Still Having Host Header Problems - I am running Apache 1.3.29. I host a website which has a URL of I would like the users coming to the site to see in their browser's address bar instead of I tried using

Virtual Host - Hej Virtual host - what's that mean? I have installed inside intranet. I want that my listen other host inside the intranet for example : gateway! Other users from world not see my server, becouse is inside the intranet. ..

virtual host - Hi, I'm a newbie on Apache, so I need help for the of Virtual Hosts. My english is bad, I'm sorry and I hope you can me... I've seen the and I've tried many times but my doesn't works... I've a lots..

Virtual Host - Does anyone have any idea why this isn't working? The following virtual host info in my works when I have someone try it from my IP (I assume cause it's the default ), but not when I try the domain or it's aliases. ..
Author Message
JoeSmoe

External


Since: Feb 11, 2007
Posts: 1



(Msg. 1) Posted: Sun Feb 11, 2007 10:46 am
Post subject: Virtual Host Configuration problems
Archived from groups: alt>apache>configuration (more info?)

Hi,

Can anyone tell me why my virtual hosts configuration will not work?
It worked fine on my old test box just not this one!

I am able to ping subDomain2 but not the main domain or subdomain1 as they
time out...

Any help would be kindly appreciated

Joe


NameVirtualHost *

<VirtualHost *>
ServerName www.mydomain.dyndns.biz
DocumentRoot C:/www/webroot
DirectoryIndex index.html index.php
</VirtualHost>


<VirtualHost *>
ServerName www.mysubdomain1.mydomain.dyndns.biz
DocumentRoot C:/www/webroot/subdomain1
DirectoryIndex index.html index.php
</VirtualHost>


<VirtualHost *>
ServerName www.mysubdomain2.mydomain.dyndns.biz
DocumentRoot C:/www/webroot/subdomain2
DirectoryIndex index.html index.php
</VirtualHost>

 >> Stay informed about: Virtual Host Configuration problems 
Back to top
Login to vote
shimmyshack

External


Since: Dec 08, 2006
Posts: 274



(Msg. 2) Posted: Sun Feb 11, 2007 10:46 am
Post subject: Re: Virtual Host Configuration problems [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 11 Feb, 10:46, "JoeSmoe" <JoeS....DeleteThis@hotmail.com> wrote:
> Hi,
>
> Can anyone tell me why my virtual hosts configuration will not work?
> It worked fine on my old test box just not this one!
>
> I am able to ping subDomain2 but not the main domain or subdomain1 as they
> time out...
>
> Any help would be kindly appreciated
>
> Joe
>
> NameVirtualHost *
>
> <VirtualHost *>
> ServerNamewww.mydomain.dyndns.biz
> DocumentRoot C:/www/webroot
> DirectoryIndex index.html index.php
> </VirtualHost>
>
> <VirtualHost *>
> ServerNamewww.mysubdomain1.mydomain.dyndns.biz
> DocumentRoot C:/www/webroot/subdomain1
> DirectoryIndex index.html index.php
> </VirtualHost>
>
> <VirtualHost *>
> ServerNamewww.mysubdomain2.mydomain.dyndns.biz
> DocumentRoot C:/www/webroot/subdomain2
> DirectoryIndex index.html index.php
> </VirtualHost>

pinging is just a network thing, and happens on a port that apache
isnt listening on, so its to the network setup you should go. (usually
the hosts file or the local DNS server if you have one)

provided all those hosts point to the IP on which apache is listening
you will be able to ping, and then when you requests data from the
ports apache is listening on, she will answer.

To find out i fyou have the network setup correctly try
nslookup subdomain
if it returns the IP address to which apache is bound for all hosts
you want apache to answer to, great, if not, you will have to hard
code the hosts file.

 >> Stay informed about: Virtual Host Configuration problems 
Back to top
Login to vote
Stephane M

External


Since: Jan 07, 2007
Posts: 19



(Msg. 3) Posted: Sun Feb 11, 2007 9:56 pm
Post subject: Re: Virtual Host Configuration problems [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

shimmyshack a écrit :
> On 11 Feb, 10:46, "JoeSmoe" <JoeS....TakeThisOut@hotmail.com> wrote:
>> Hi,
>>
>> Can anyone tell me why my virtual hosts configuration will not work?
>> It worked fine on my old test box just not this one!
>>
>> I am able to ping subDomain2 but not the main domain or subdomain1 as they
>> time out...
>>
>> Any help would be kindly appreciated
>>
>> Joe
>>
>> NameVirtualHost *
>>
>> <VirtualHost *>
>> ServerNamewww.mydomain.dyndns.biz
>> DocumentRoot C:/www/webroot
>> DirectoryIndex index.html index.php
>> </VirtualHost>
>>
>> <VirtualHost *>
>> ServerNamewww.mysubdomain1.mydomain.dyndns.biz
>> DocumentRoot C:/www/webroot/subdomain1
>> DirectoryIndex index.html index.php
>> </VirtualHost>
>>
>> <VirtualHost *>
>> ServerNamewww.mysubdomain2.mydomain.dyndns.biz
>> DocumentRoot C:/www/webroot/subdomain2
>> DirectoryIndex index.html index.php
>> </VirtualHost>
>
> pinging is just a network thing, and happens on a port that apache
> isnt listening on, so its to the network setup you should go. (usually
> the hosts file or the local DNS server if you have one)
>
> provided all those hosts point to the IP on which apache is listening
> you will be able to ping, and then when you requests data from the
> ports apache is listening on, she will answer.
>
> To find out i fyou have the network setup correctly try
> nslookup subdomain
> if it returns the IP address to which apache is bound for all hosts
> you want apache to answer to, great, if not, you will have to hard
> code the hosts file.
>


Hi,

May I suggest another test, just to make sure that your new machine is
working fine:

Add in ONE of your Virtualhost the line :
'ServerAlias localhost'

then restart your Httpd service and try http://localhost
If you do this on all your virtual host, you can check that your HTTP
services is listening correctly.

If so, that sounds NOT to come from your Apache configuration, but maybe
from your Domaine name provider (that is the problem I had last week)

As said Shimmyshack, this could your DNS setting..

Make sure that your domaine or Subdomain redirect to your IP address AND
that the DNS address is also your IP address

I hope this help
Stephane
 >> Stay informed about: Virtual Host Configuration problems 
Back to top
Login to vote
Display posts from previous:   
   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 ]