httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Mearns" <mearn...@gmail.com>
Subject Re: [users@httpd] Redirect/ReWrite config for multiple domains to different pages
Date Wed, 15 Oct 2008 10:43:47 GMT
If customer1's_domain.com and customer2's_comain.com are DNS entries
to your server, then your solution can be found in VirtualHosts. This
setup allows you to use different configurations depending on the
hostname the client the provides when they connect. In this case, you
can just set up the appropriate rewrite rule for each VirtualHost.

If customer1's_domain.com, etc, are actually your customer's domains,
then I don't see that you could possibly do it with Apache (or any
other webserver, for that matter). If they're accessing their own
address, the request will never get to your server.

Hope that helps,
-Brian

On Wed, Oct 15, 2008 at 6:24 AM, Paul Robson <paul.robson@8ds.co.uk> wrote:
> Having read the Apache and mod_ReWrite docs I can't see how to setup the
> below secienario and Google searches are fruitless as I'm not quite sure
> exactly what to search for.
> I have a web application which allows many customers to access it
> without knowing about each other by suppling their id in the URL.  I
> would like some assistance in how to configure Apache to allow
> connection from many different domains, redirecting their request to a
> specific url depending upon their source domain e.g.
> http://my_web_server.com/index.cfm - this is the default document
> http://customer1's_domain.com/index.cfm should redirect to
> http://customer1's_domain.com/index.cfm?owner=1 which is an alias or
> mask for http://my_web_server.com/index.cfm?owner=1
> http://customer2's_domain.com/index.cfm ->
> http://customer2's_domain/index.cfm?owner=52 ->
> http://my_web_server.com/index.cfm?owner=52
> Each customer's browser should still show pages as returning from their
> own domain rather than my own.
> The application can be viewed at http://courses.gotfrom.me.uk a typical
> customer url may be http://courses.nebpn.org
> Any assistance or points towards the documents I should be reading would
> be grateful.
>
> Cheers
>
> Paul
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message