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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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??? |
|
|||
|
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??? |
|
|||
|
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 |
|
|||
|
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??? |
|
|||
|
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. |