How can is change my start page from http://localhost/xampp

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

How can is change my start page from http://localhost/xampp

Postby fable » 25. April 2007 16:42

How can is change my start page from http://localhost/xampp to http://localhost/test when i enter http://localhost as an URL :?:
fable
 
Posts: 2
Joined: 25. April 2007 16:38

not the easiest solution but much better

Postby stabby » 26. April 2007 05:26

not exactly the solution, but better:

Iv just followed these instructioins:
http://minitutorials.com/apache/apache_222_3.shtml

And they helped big time, now i can view a different site from my browser using
127.0.0.1 (first website)
127.0.0.2(second..)
127.0.0.3(third..) etc.

Just follow the instructions exactly as is, took me about half an hour.

Just note:
When you come to editting httpd-vhosts.conf

Make this your first site
NameVirtualHost *:80
<VirtualHost *>
</VirtualHost>

and
NameVirtualHost 127.0.0.2:80
<VirtualHost 127.0.0.2>
</VirtualHost>

your second etc.

This also means you can put your site folders in any directory on your sytem.[/list]
Last edited by stabby on 26. April 2007 05:32, edited 1 time in total.
stabby
 
Posts: 5
Joined: 26. April 2007 05:09

Quicker solution

Postby stabby » 26. April 2007 05:29

The other quicker solution is to edit your 'httpd-conf' file in /xampp/apache/conf/

so that your

DocumentRoot "E:/xampp/htdocs"
is
DocumentRoot "E:/xampp/test" instead

Note you'll also have to change
<Directory "E:/xampp/htdocs">
to
<Directory "E:/xampp/test">
also.
stabby
 
Posts: 5
Joined: 26. April 2007 05:09

Dont!

Postby onyblonx » 28. April 2007 22:35

Just edit the index.php file in

C:/xampp/htdocs/

where it says header('Location: '.$uri.'/xampp/');

change '/xampp/' to '/test/'

That is the automatic redirect that is bouncing you from 127.0.0.1 to 127.0.0.1/xampp/ in the first place
User avatar
onyblonx
 
Posts: 4
Joined: 28. April 2007 22:31

Thanks

Postby fable » 30. April 2007 07:20

Thanks it really helped me :D
fable
 
Posts: 2
Joined: 25. April 2007 16:38


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 28 guests