localhost redirects to localhost/xampp

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

localhost redirects to localhost/xampp

Postby ApacheFanFoSho » 23. June 2008 18:50

How do i stop this from doing this?

I'd like localhost to point to C:\xampp\htdocs instead :(
Posts: 3
Joined: 23. June 2008 18:30

Postby brduran » 23. June 2008 20:08

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 *:80>
ServerName localhost
DocumentRoot c:\xampp\htdocs
Posts: 22
Joined: 13. June 2008 03:13

Where is "httpd-vhosts"?

Postby Newrone » 30. June 2008 09:19

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?
Posts: 9
Joined: 24. June 2007 03:47

Postby Milligan » 30. June 2008 10:22

Last edited by Milligan on 17. July 2008 04:54, edited 1 time in total.
Posts: 136
Joined: 03. March 2008 06:23

Postby Newrone » 30. June 2008 13:33

:wink: Go raimh maith agat a Síofra.
Posts: 9
Joined: 24. June 2007 03:47

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 73 guests