address forwarding in apache

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

address forwarding in apache

Postby jasius » 28. May 2010 02:37

I have a question: I have xampp server on ubuntu and my website is in its extrafolder which is a nuisance, e.g. instead of

http://foo.com

people have to type

http://foo.com/foo1

to access it. Is there a way to tell apache to forward
http://foo.com to http://foo.com/foo1


thanks

Jonas
jasius
 
Posts: 4
Joined: 27. March 2010 16:35

Re: address forwarding in apache

Postby Altrea » 28. May 2010 06:31

jasius wrote:Is there a way to tell apache to forward
http://foo.com to http://foo.com/foo1


sure! "forward" in the broadest sense.
the solution depends on the question why the users must type in http://foo.com/foo1

some keywords:
- DocumentRoot
- VHOST
- mod_rewrite
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: 8293
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: address forwarding in apache

Postby jbaltrus » 28. May 2010 14:08

That's the point, users don't want to do that. they should type in http://foo.com/ and it should take them to http://foo.com/foo1, that's where it's installed
jbaltrus
 
Posts: 4
Joined: 07. March 2010 22:06

Re: address forwarding in apache

Postby JonB » 29. May 2010 03:13

Altrea is right

Its time for vhost and DocumentRoot, that's what they actually do -- allow you to have alternate locations for content in Apache.

Good Luck
8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 10 guests