07-29-04 01:08 PM
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.goog
le.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
[ Post a follow-up to this message ]
|