Renaming the htdocs folder is not a good idea - this is defined in your httpd.conf file and really there is no need to rename it.
Keeping it as the default allows you to both visit the XAMPP Welcome Page and use all the features it has and also visit your web sites without too much hassle.
http://localhost will give the XAMPP Welcome Page.
http://localhost/server will give your web site.
Lets look at trying it this way and see if it works then you can see what or why it was not working - all you need do is rename the htdocs_orig back to htdocs and move your server directory into the htdocs directory as is normal practice.
- Code: Select all
NameVirtualHost *:80
<VirtualHost *:80>
ServerName localhost
DocumentRoot "C:/Program Files/xampp/htdocs"
<Directory "C:/Program Files/xampp/htdocs">
Options Indexes FollowSymLinks Includes ExecCGI
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *.80>
ServerName server.loc
DocumentRoot "C:/Program Files/xampp/htdocs/server"
<Directory "C:/Program Files/xampp/htdocs/server">
Options Indexes FollowSymLinks Includes ExecCGI
Allow Override All
Order Allow,deny
Allow from all
</Directory>
</VirtualHost>
Your Windows host file in your first post is correct.
Let me know back if you have any problems with the above configuration.
BTW, what OS are you running?
Directory names which contain a space can cause issues with Vista and with other scripts etc. at some stage in the future and, after loosing much sleep and hair, you may not associate that space as being the cause.
Also, all things Apache are case sensitive as opposed to Windows which doesn't shive a git.
===========================================
1. The new
DeskTopXampp Launch Control for
XAMPP / XAMPPlite
Posted by
Ridgewood available from Ridgewood's
DTX web site
2. Build Rich
AJAX Applications - Faster
TIBCO General Interface Pro Edition but
FREE and
Open Source
Fully working with
NO donations required to get a user/password
===========================================