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

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

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

Postby trvl1982 » 21. February 2012 17:06

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
</Directory>

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.
trvl1982
 
Posts: 1
Joined: 21. February 2012 16:38
Operating System: Win XP

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

Postby Altrea » 21. February 2012 18:24

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,
Altrea
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 144 guests