bmandk wrote:I went in there, but it was already set to C:/xampp/apache/htdocs :S
What version of XAMPP did you install?
You must have changed that entry yourself at some stage.
When ever a change is made to the server's DocumentRoot you will also need to change this Directory directive entry a little lower down in the httpd.conf file, as pointed out in the entries comments
- Code: Select all
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "C:/xampp/apache/htdocs">
Restart Apache and then go to
http://localhost and using the default included index.html file in that folder you should see
It Works! in your browser - replace that included index file with one from your web site and you will be all set to move ever so cautiously forward.
As pointed out by the previous poster JonB, the method you are wanting to use is not recommended as it may open an unexpected security hole that may in some cases expose your files and folders on your PC to a knowledgeable script kiddie attack or, worse still, create another XAMPP zombie server, of which there are far too many already, created by mal configurations of the type you propose.
Best practice is to keep the httpd.conf file as the installation defaults and if you require to individualize your server then use the configuration files included in the C:\xampp\apache\conf\extra folder and specifically for your needs the httpd-vhosts.conf file which allows a DocumentRoot anywhere on your PC coupled to any ServerName you wish to use - these configuration files override entries found in the httpd.conf file as these files are read after the httpd.conf file server's defaults.
But, having said all that, it is after all, your server and your computer and so ultimately the choice is entirely yours how you configure it, all we can do in reply is offer our advise based on our knowledge and past experiences.
So good luck with your projects using XAMPP as a test bed server suite.