Apache on XP virtual host problem

This is a discussion on Apache on XP virtual host problem within the Windows Web Servers forums, part of the Web Server and Related Forums category; I have installed apache 1.3.29 on XP. When I enter 127.0.0.1 into IE I get ...


Go Back   Usenet Forums > Web Server and Related Forums > Windows Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-03-2004
Jeremy Langworthy
 
Posts: n/a
Default Apache on XP virtual host problem

I have installed apache 1.3.29 on XP. When I enter 127.0.0.1 into IE I
get the test page fine.

When I add

<VirtualHost *>
ServerName 8legs
DocumentRoot d:/websites/8legs
</VirtualHost>

to the httpd.conf and try 127.0.0.1 I get a 403:

Forbidden
You don't have permission to access / on this server.

(The Virtual host doesn't work either by the way.)

Take away the virtual host entry and the test page works fine.

I have tried different permetations of the <VirtualHost> entry
including:
<VirtualHost *:80>
<VirtualHost 127.0.0.1>
<VirtualHost 8legs>

Any ideas???
  #2 (permalink)  
Old 04-03-2004
Ryan Vu
 
Posts: n/a
Default Re: Apache on XP virtual host problem

Hi Jeremy,

1Check if you have IIS installed ( MS Web Server) on your XP system.
and stop it. Start, Control Pannel, Service, Stop
2 Use port 8080 instead of 80

"Jeremy Langworthy" <groups@8legs.co.nz> wrote in message
news:c7589151.0404022305.56e17d8b@posting.google.c om...
> I have installed apache 1.3.29 on XP. When I enter 127.0.0.1 into IE I
> get the test page fine.
>
> When I add
>
> <VirtualHost *>
> ServerName 8legs
> DocumentRoot d:/websites/8legs
> </VirtualHost>
>
> to the httpd.conf and try 127.0.0.1 I get a 403:
>
> Forbidden
> You don't have permission to access / on this server.
>
> (The Virtual host doesn't work either by the way.)
>
> Take away the virtual host entry and the test page works fine.
>
> I have tried different permetations of the <VirtualHost> entry
> including:
> <VirtualHost *:80>
> <VirtualHost 127.0.0.1>
> <VirtualHost 8legs>
>
> Any ideas???



  #3 (permalink)  
Old 04-03-2004
Jim Patterson
 
Posts: n/a
Default Re: Apache on XP virtual host problem

Jeremy Langworthy wrote:
> I have installed apache 1.3.29 on XP. When I enter 127.0.0.1 into IE I
> get the test page fine.
>
> When I add
>
> <VirtualHost *>
> ServerName 8legs
> DocumentRoot d:/websites/8legs
> </VirtualHost>
>
> to the httpd.conf and try 127.0.0.1 I get a 403:
>
> Forbidden
> You don't have permission to access / on this server.
>
> (The Virtual host doesn't work either by the way.)
>
> Take away the virtual host entry and the test page works fine.


When you "take away" the VirtualHost, are you also taking away the
DocumentRoot directive that you have in it? That is, are you serving up
a different DocumentRoot without it?

If so, then you're likely just missing a <Directory> block for that
directory. Apache needs to be explicitly told what directories it can
serve. (Actually, the default configuration files set things up that way
to keep things more secure). In any case, look for a block like this for
your main document directory:

<Directory "C:/Program Files/Apache Gropu/Apache/htdocs">
Order allow, deny
Allow from all
</Directory>

You need to define something similar for your VirtualHost root
directory. That should get rid of the 403 error.

--
Jim Patterson
Ottawa, CANADA
  #4 (permalink)  
Old 04-04-2004
Jeremy Langworthy
 
Posts: n/a
Default Re: Apache on XP virtual host problem

Ok. Thanks for your input guys. I tried your ideas but they didn't
seem to work. I feel like I'm getting closer tho. I have added this to
the httpd.conf:

<Directory "D:/websites">
Options Indexes FollowSymlinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

The site I am trying to test is contained within a sub-folder of
'websites'. My virtual host entry for the site '8legs' is:
<VirtualHost *>
ServerName 8legs
DocumentRoot D:/websites/8legs
</VirtualHost>

When I try to surf to 'http://8legs' I get a '500 Internal Server
Error'. When I surf to '127.0.0.1' I get the directory listing of
'd:/websites/8legs'. It doesn't load the index.htm even tho one is
present (not sure if this is related).

BUT...

If I remove the Virtual Host entry for 8legs and try to surf to
127.0.0.1 I get the old 403 error again.

Any ideas???




groups@8legs.co.nz (Jeremy Langworthy) wrote in message news:<c7589151.0404022305.56e17d8b@posting.google. com>...
> I have installed apache 1.3.29 on XP. When I enter 127.0.0.1 into IE I
> get the test page fine.
>
> When I add
>
> <VirtualHost *>
> ServerName 8legs
> DocumentRoot d:/websites/8legs
> </VirtualHost>
>
> to the httpd.conf and try 127.0.0.1 I get a 403:
>
> Forbidden
> You don't have permission to access / on this server.
>
> (The Virtual host doesn't work either by the way.)
>
> Take away the virtual host entry and the test page works fine.
>
> I have tried different permetations of the <VirtualHost> entry
> including:
> <VirtualHost *:80>
> <VirtualHost 127.0.0.1>
> <VirtualHost 8legs>
>
> Any ideas???

  #5 (permalink)  
Old 04-07-2004
Joshua Slive
 
Posts: n/a
Default Re: Apache on XP virtual host problem

groups@8legs.co.nz (Jeremy Langworthy) wrote in message news:<c7589151.0404040218.1555163f@posting.google. com>...

> When I try to surf to 'http://8legs' I get a '500 Internal Server
> Error'. When I surf to '127.0.0.1' I get the directory listing of
> 'd:/websites/8legs'. It doesn't load the index.htm even tho one is
> present (not sure if this is related).
>
> BUT...
>
> If I remove the Virtual Host entry for 8legs and try to surf to
> 127.0.0.1 I get the old 403 error again.
>
> Any ideas???


You need to start by looking in the apache error log. It tells you the
exact nature of the error. Any other advice would just be guessing.

Joshua.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:07 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0