Apache Server configuration support - Redirect URLS

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > January 2007 > Redirect URLS





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Redirect URLS
ghart@medex.com

2007-01-06, 8:11 pm

Hello all,

I will start by saying I don't normally work in Apache and I don't have
too much information as to the version, etc. I am posting this for
someone else.

We are trying to determine how we can do redirects on an Apache box,
much like you would using host headers on an IIS box. We want to be
able to setup something that when someone comes to site1.xyz.com, they
go to one place, then if someone goes to site2.xyz.com they go to a
different place on the same box. So external dns for both sites points
to the same IP, but when they get to the box, they are directed to the
proper place based on the URL.

I assume this is possbile, but not sure how to go about it.

Thanks,
Greg

Davide Bianchi

2007-01-06, 8:11 pm

On 2007-01-03, ghart@medex.com <ghart@medex.com> wrote:
> We are trying to determine how we can do redirects on an Apache box,
> much like you would using host headers on an IIS box. We want to be
> able to setup something that when someone comes to site1.xyz.com, they
> go to one place, then if someone goes to site2.xyz.com they go to a
> different place on the same box. So external dns for both sites points


That's not redirection, what you want is a Virtual Host.

A redirection is a sort of error message that is sent back to the
client instructing him to request a different URL, a virtual host is
a complete website or webapplication that works from a url that points
to a machine with multiple names.

Read the documentation about Virtual Hosts and especially Name-Based
virtual hosts.

Davide

--
Microsoft DOS/NT (doesn't) provide the means to WIN!
-- Ewout Stam
ghart@medex.com

2007-01-06, 8:11 pm

Sorry, I mispoke, yes Virtual Host is what I am looking for. I will
have the requester take a look at Virtual Hosts and especially
Name-Based virtual hosts.

Davide Bianchi wrote:
> On 2007-01-03, ghart@medex.com <ghart@medex.com> wrote:
>
> That's not redirection, what you want is a Virtual Host.
>
> A redirection is a sort of error message that is sent back to the
> client instructing him to request a different URL, a virtual host is
> a complete website or webapplication that works from a url that points
> to a machine with multiple names.
>
> Read the documentation about Virtual Hosts and especially Name-Based
> virtual hosts.
>
> Davide
>
> --
> Microsoft DOS/NT (doesn't) provide the means to WIN!
> -- Ewout Stam


ghart@medex.com

2007-01-06, 8:11 pm

Sorry, I mispoke, yes Virtual Host is what I am looking for. I will
have the requester take a look at Virtual Hosts and especially
Name-Based virtual hosts.

Davide Bianchi wrote:
> On 2007-01-03, ghart@medex.com <ghart@medex.com> wrote:
>
> That's not redirection, what you want is a Virtual Host.
>
> A redirection is a sort of error message that is sent back to the
> client instructing him to request a different URL, a virtual host is
> a complete website or webapplication that works from a url that points
> to a machine with multiple names.
>
> Read the documentation about Virtual Hosts and especially Name-Based
> virtual hosts.
>
> Davide
>
> --
> Microsoft DOS/NT (doesn't) provide the means to WIN!
> -- Ewout Stam


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com