Can't configure multiple domains
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Can't configure multiple domains




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Can't configure multiple domains  
Jules


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-28-04 01:58 AM

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 ]



    Re: Can't configure multiple domains  
Jules


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:50 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register