Using a different folders for my webpages

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Using a different folders for my webpages

Postby jaketess » 20. December 2005 08:47

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.
jaketess
 
Posts: 2
Joined: 20. December 2005 08:42

Postby mojo » 23. December 2005 07:19

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.
mojo
 
Posts: 1
Joined: 23. December 2005 07:13

Postby WorldDrknss » 23. December 2005 09:31

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.
User avatar
WorldDrknss
 
Posts: 292
Joined: 17. September 2005 13:40

thanks1

Postby jaketess » 24. December 2005 03:31

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.
jaketess
 
Posts: 2
Joined: 20. December 2005 08:42


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 71 guests