Page 1 of 1

Using a different folders for my webpages

PostPosted: 20. December 2005 08:47
by jaketess
Hello everyone, I have installed XAMMP and everything is working fine. I just want to know how to direct XAMMP to look for my webpages located in d:\htdocs.

i can use do this before by changing some httpd.conf.

thaks for those who will reply.

PostPosted: 23. December 2005 07:19
by mojo
You could do something like I have done. I needed to have multiple websites set up on my system (for development purposes), and I have done this:

Created multiple hostnames that point to 127.0.0.1 (e.g. localhost-site1, localhost-site2, etc) in the c:\windows\system32\drivers\etc\hosts file.

Code: Select all
127.0.0.1       localhost
127.0.0.1       localhost-site1
127.0.0.1       localhost-site2


Then in the httpd.conf file, you can set up virtual hosts such as:

Code: Select all
NameVirtualHost *:80

<VirtualHost *:80>
   DocumentRoot "c:\apachefriends\xampp\htdocs"
</VirtualHost>

<VirtualHost *:80>
   DocumentRoot "d:/site1/htdocs"
   ServerName localhost-site1
</VirtualHost>

<VirtualHost *:80>
   DocumentRoot "d:/site2/htdocs"
   ServerName localhost-site2
</VirtualHost>


So you could have as many localhosts pointing to different directories as you would need. This can also work if you need just one host. And the regular localhost would still load the standard XAMPP pages as it did when you first installed it.

Hope this helps you.

PostPosted: 23. December 2005 09:31
by WorldDrknss
All your tutorial needs for xampp http://www.worlddrknss.blogdns.org and its up to date.

XAMPP 1.5.0 follow the tutorial
XAMPP 1.5.1 Read the latest updates then do the tutorials.

thanks1

PostPosted: 24. December 2005 03:31
by jaketess
Thanks for the reply. I will look into it right away!

WorldDrknss wrote:All your tutorial needs for xampp http://www.worlddrknss.blogdns.org and its up to date.

XAMPP 1.5.0 follow the tutorial
XAMPP 1.5.1 Read the latest updates then do the tutorials.