Apache Server configuration support - Can't configure multiple domains

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > July 2004 > Can't configure multiple domains





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Can't configure multiple domains
Jules

2004-07-27, 8:58 pm

Hi:

I am trying to upgrade from Apache 1.3.? to 2.0.50 on my local system
(WinXPro). It is just used for development purposes. It was working
fine on 1.3 but because of some work I must do, I needed to upgrade.

Apache is installed in N:\Apache: here are some of the settings I
have:

ServerRoot "N:/Apache"
ServerName is 127.0.0.1:80
DocumentRoot "N:/Apache/htdocs"
<Directory "N:/Apache/htdocs">
NameVirtualHost *:80

I have a personal website (jrickards.ca) but locally, I want to
develop my site at jrickards.dev so I created:

<VirtualHost *:80>
ServerName jrickards.dev
DocumentRoot "/jrickards/public_html"
</VirtualHost>

However, all I get is jrickards.dev not found.

Given that I am running on a Windows system, I added the following to
the hosts file in C:\Windows\System32\drivers\etc

127.0.0.1 jrickards.dev

And now I get the "Successful installation" page for Apache, not the
homepage of jrickards.dev.

I looked through the Google Groups but couldn't find the answer.

Jules
Jules

2004-07-29, 8:08 am

I figured it out. The problem was the DocumentRoot. In Apache 1.3, I
had DocumentRoot for the server as "N:/Apache/htdocs" and DocumentRoot
for the VirtualHost as "/jrickards/public_html" and it worked but
these settings do not seem to work the same on Apache 2. What I
discovered was that the VirtualHost DocumentRoot must be absolute such
as "N:/Apache/htdocs/jrickards/public_html".

Everything is fine now.

I am curious, are there many instances of this type of question? If
so, should not this process be made more clear to newbies like myself?

Jules

julian@jrickards.ca (Jules) wrote in message news:<8a7d404e.0407271607.6a273fa9@posting.google.com>...
> Hi:
>
> I am trying to upgrade from Apache 1.3.? to 2.0.50 on my local system
> (WinXPro). It is just used for development purposes. It was working
> fine on 1.3 but because of some work I must do, I needed to upgrade.
>
> Apache is installed in N:\Apache: here are some of the settings I
> have:
>
> ServerRoot "N:/Apache"
> ServerName is 127.0.0.1:80
> DocumentRoot "N:/Apache/htdocs"
> <Directory "N:/Apache/htdocs">
> NameVirtualHost *:80
>
> I have a personal website (jrickards.ca) but locally, I want to
> develop my site at jrickards.dev so I created:
>
> <VirtualHost *:80>
> ServerName jrickards.dev
> DocumentRoot "/jrickards/public_html"
> </VirtualHost>
>
> However, all I get is jrickards.dev not found.
>
> Given that I am running on a Windows system, I added the following to
> the hosts file in C:\Windows\System32\drivers\etc
>
> 127.0.0.1 jrickards.dev
>
> And now I get the "Successful installation" page for Apache, not the
> homepage of jrickards.dev.
>
> I looked through the Google Groups but couldn't find the answer.
>
> Jules

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com