Page 1 of 1

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

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

not the easiest solution but much better

PostPosted: 26. April 2007 05:26
by stabby
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]

Quicker solution

PostPosted: 26. April 2007 05:29
by stabby
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.

Dont!

PostPosted: 28. April 2007 22:35
by onyblonx
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

Thanks

PostPosted: 30. April 2007 07:20
by fable
Thanks it really helped me :D