http://www.apachefriends.org/en/faq-xam ... #startpage
http://www.apachefriends.org/en/xampp-windows.html#1168
In a default installation:
http://localhost/
Finds the
xampp\htdocs\index.php
and loads the
Welcome to XAMPP page via a redirection in the index.php code to
xampp\htdocs\xampp\index.php
Typing this does the same thing except bypasses the first
xampp\htdocs\index.php
and opens the index.php in the
xampp subdirectory
http://localhost/xampp/
If you put your web site in
xampp\htdocs\webs\
and then you type
http://localhost/
you will see the
Welcome to XAMPP page just as before.
Your site in the
webs directory is not known yet as the default site to the server.
If you type
http://localhost/webs/
Then your web site's index page will be displayed but not as the default site.
As
Weidmann pointed out, if you remove or rename the files already in the directory
xampp\htdocs
and place your own index page complete with a redirection to the web site index page in
xampp\htdocs\webs
then type
http://localhost/
you will see your web site's index page (as in the Welcome to XAMPP scenario).
It has now become the default web site.
If you place
all your web site files including your site's main index file and all sub directories of your web site into the
xampp\htdocs
directory and type this
http://localhost/
You will see your web site as the default site (but with no need for a redirect).
The
Welcome to XAMPP page is still available by typing
http://localhost/xampp/
All you have done in effect is replace the default Welcome to XAMPP web site with your own web site as the default.
Using the above method does not entail changing any configuration files, at this stage, from the defaults.
So if you changed anything I suggest your revert to the original
httpd.conf file.
The other method mentioned entails editing the
xampp\apache\conf\httpd.conf file.
All your web site files should be in the directory
xampp\htdocs\webs
1.
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "C:/xampp/htdocs"
to
DocumentRoot "C:/xampp/htdocs/webs"
2.
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "C:/xampp/htdocs">
to
<Directory "C:/xampp/htdocs/webs">
BTW
Always make a backup copy of any original conf files before editing them so you have good copies if you ever have to revert.
Always restart Apache if you do make any changes in any conf files to have those changes recognized by the server.
HTH
=================================================
Take a look at the new
DeskTopXampp launch control for
XAMPP and
XAMPPlite (DTX.exe)
http://nat32.com/dtx/
posted by
ridgewood:
http://community.apachefriends.org/f/viewtopi ... 967#103967
Also available here:
http://zedfiles.com/DTX/
I highly recommend DTX.
=================================================