Page 1 of 1

address forwarding in apache

PostPosted: 28. May 2010 02:37
by jasius
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

Re: address forwarding in apache

PostPosted: 28. May 2010 06:31
by Altrea
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

Re: address forwarding in apache

PostPosted: 28. May 2010 14:08
by jbaltrus
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

Re: address forwarding in apache

PostPosted: 29. May 2010 03:13
by JonB
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)