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
</VirtualHost>
<Directory C:/apache/xampp/gmha>
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Contents of C:\WINDOWS\hosts
- Code: Select all
127.0.0.1 localhost
127.0.0.1 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
gmha.test
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.