Page 1 of 1

Changed Default page in httpd.conf , But Can't access XAMPP

PostPosted: 21. February 2012 17:06
by trvl1982
Hi All.
I have installed Xampp 1.7.7. I have installed joomla 2.5.1

config is like this for xampp: c:/xampp
config is like this for joomla: c:/xampp/htdocs/minewev

now i had to put always http://localhost/minewev to open/browse website, while only http://locahost was redirecting to localhost/xampp by default.
To change the default page i did few changes c:/apapche/conf/httpd.conf file. i.e.

DocumentRoot "C:/xampp/htdocs/minewev"

<Directory "C:/xampp/htdocs/minewev">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all

And Rename C:/xampp/htdocs/index.html to c:/xampp/htdocs/index-original.html

After that i have restarted apache. And it worked for me. I was able to get my home page directly i.e http://localhost only . no need to write http://localhost/minwev.
BUT (Yes BIG BUT). I am not able to access http://localhost/xampp now. giving err, Object not found./error 404

Tried to use alias in conf file. Alias /xampp "C:/xampp/htdocs". but giving err, Object not found./error 404 Please advice if i have missed something to configure..

Thanks in advance.

Re: Changed Default page in httpd.conf , But Can't access XA

PostPosted: 21. February 2012 18:24
by Altrea
Don't make it too difficult.

First, bring back your configuration files as it was shipped.
Then open your C:\xampp\htdocs\index.php file and simply reconfigure the redirect in there.

The other possibility will be to use two VHosts, one for localhost and one you define by your own.
More work but your site will act as it were a top level domain (important especially for .htaccess with mod_rewrite).

best wishes,