Page 1 of 1

localhost redirects to localhost/xampp

PostPosted: 23. June 2008 18:50
by ApacheFanFoSho
How do i stop this from doing this?

I'd like localhost to point to C:\xampp\htdocs instead :(

PostPosted: 23. June 2008 20:08
by brduran
index.php forwards requests to your Xampp's folder when yopu type "http://localhost". I recommend you leave it as such, however if you want to see your another website instead of the localhost when you enter you local IP address (192.168.1.xxx), then make changes in your "httpd-vhosts". In "httpd-vhosts" the access goes to the first <VirtualHost *:80> in this group.

Make sure your first <VirtualHost *:80> is not localhost but the one you want to show, like:

<VirtualHost *:80>
ServerName zingout.com
DocumentRoot c:\xampp\htdocs\www\zingout
ServerAlias www.zingout.com
ServerAdmin services@zingout.com
ErrorLog c:\xampp\apache\logs\zingout-error.log
CustomLog c:\xampp\apache\logs\zingout-access.log common
</VirtualHost>

<VirtualHost *:80>
ServerName localhost
DocumentRoot c:\xampp\htdocs
</VirtualHost>

Where is "httpd-vhosts"?

PostPosted: 30. June 2008 09:19
by Newrone
Thanks, but to be clear, I assume "httpd-vhosts" is part of "http.conf" (in xampp\apache\conf)? Or is it a config file apart, or part of another config file?

PostPosted: 30. June 2008 10:22
by Milligan

PostPosted: 30. June 2008 13:33
by Newrone
:wink: Go raimh maith agat a Síofra.