Vhost Setup fails - 403 error - access denied

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Vhost Setup fails - 403 error - access denied

Postby jlhaslip » 02. November 2006 08:29

Thanks for any assistance you might be able to provide.

As per the topic title, I am having difficulties getting a Virtual Host set up on my machine. XAMPP by itself is okay, in fact it runs perfectly except with several projects on my Local machine for testing purposes only, I wanted to avoid everything being accessed through the localhost/sub-folder method. I would like to go direct to the folder in the htdocs folder etc, blah, blah. You know what I mean...

I have been to the sites reccomended by other topics and have tried several different things which have all been failures, so I am posting here to have someone assist me in setting up a named host for an Apache server running on a Windows machine running 98SE. XAMPP version is 1.5.1, in case any of that matters.

In summary, I have an install of XAMPP which is un-altered, so I won't post the entire httpd.config file or the vhosts file, either, but here is the coding which I thought would work, but fails:

Added to C:\apache\xampp\apache\conf\httpd.conf and the vhost config file ( seperately & together , with and without quoted paths )"
Code: Select all
<VirtualHost *:80>
          DocumentRoot C:/apache/xampp/gmha
          ServerName  gmha.test

<Directory C:/apache/xampp/gmha>
         Options  FollowSymLinks
         AllowOverride None
         Order allow,deny
         Allow from all

Contents of C:\WINDOWS\hosts
Code: Select all       localhost       gmha.test

Error received in the Browser:
Access forbidden!

You don't have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster.
Error 403
11/01/06 22:10:35
Apache/2.2.0 (Win32) DAV/2 mod_ssl/2.2.0 OpenSSL/0.9.8a mod_autoindex_color PHP/5.1.1

And,of course, I have been stopping and starting the server between attempts as per SOP. Even been bringing down the Browser on each run, but so far, the only thing that works is the original httpd file from the XAMPP install.

Since this is a truly "local" machine, connected to the Internet only via a removable disk which plugs into another machine, there is no need for any other security considerations or directives or what have you. Just need an expert opinion on what I might be doing wrong here.
Should you require any further information, please request it here and I will provide it.

Any, and all, suggestions welcome.
Thanks for letting me visit...
Posts: 10
Joined: 02. November 2006 08:02
Location: BC, Canada
Operating System: Ubuntu 10.4

Postby jlhaslip » 02. November 2006 09:34

Cancel this one.
Late at night here. I didn't put in the name of the Host. It only had the wildcard "*" in the Head tag of the VirtualHost container.
And was missing... alas, I need some sleep.
Sorry for the interuption.
Thanks for letting me visit...
Posts: 10
Joined: 02. November 2006 08:02
Location: BC, Canada
Operating System: Ubuntu 10.4

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 40 guests