You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Stone, Timothy" <ts...@cityofhbg.com> on 2003/01/22 17:32:06 UTC

RE: [users@httpd] mod-redirect, mod-alias and seeking feedback... [CLOSED]

Reposting with corrected subject line and removing ServerAlias.

Just not enough coffee this morning. ;)

> -----Original Message-----
> From: Stone, Timothy 
> Sent: Wednesday, January 22, 2003 11:08 AM
> To: users@httpd.apache.org
> Subject: RE: [users@httpd] mod-redirect, mod-alias and seeking
> feedback...
> 
> 
> And I learn a little each day with Apache...
> 
> Okay, I now know that I *cannot* use 'ServerAlias' in the 
> global context of the configuration, this of course is per 
> the Apache 2.x documentation (I do RTFM, but I missed this detail).
> 
> 'ServerAlias' is intended for name based VH.
> 
> Thanks to all with any futher information on getting my 
> server to answer to all the domains, but display a single URL 
> to the client.
> 
> Tim
> 
> > -----Original Message-----
> > From: Stone, Timothy 
> > Sent: Wednesday, January 22, 2003 8:50 AM
> > To: users@httpd.apache.org
> > Subject: [users@httpd] mod-redirect, mod-alias and seeking 
> feedback...
> > 
> > 
> > List,
> > 
> > I'm on the fence with using mod-redirect because of perceived 
> > overhead, and the documented overhead, but I think it best 
> > fits my scenario. However, I'm thinking that mod-alias might 
> > also work. I'm seeking feedback so...
> > 
> > Here's my scenario
> > 
> > I have five (5) domain names... all point to the same server. 
> > To accomplish this I have in the httpd.conf:
> > 
> > ServerName www.primaryName.com
> > ServerAlias www.secondaryName0.com
> > ServerAlias www.secondaryName1.com
> > ServerAlias www.secondaryName2.com
> > ServerAlias www.secondaryName3.com
> > 
> > I think this handles the part where the server answers to all 
> > the domain names.
> > 
> > Now, one (1) vhost resides on this server. It acts as a 
> > round-robin DNS "load-sharing" server and inherits 
> > *everything* from the global configuration except an 
> > error_log. The server aliases should inherit as well as I 
> > understand it.
> > 
> > To complete this setup, I want all of the answering domain 
> > names to display in the client as "http://www.primaryName.com"
> > 
> > I'm intending to accomplish this in the global configuration with:
> > 
> > RewriteEngine on
> > RewriteRule ^(.+)$ http://www.primaryName.com/$1 [R=permanent]
> > 
> > As I understand it this should work, but I have not tested it 
> > in production. This RewriteRule should inherit to the vhost 
> > as well, correct?
> > 
> > Finally, can mod-alias do this without the overhead?
> > 
> > Looking forward to hearing from the experiences of others. 
> > Thanks in advance for all suggestions and comments.
> > 
> > 
> > Warmest Regards,
> > Tim
> > 
> > --
> > /**
> >  * Timothy Stone      . Sun Certified Java Programmer
> >  * Web Master         . tstone at cityofhbg dot com
> >  * City of Harrisburg . 717.255.7297
> >  * Pennsylvania USA   . 717.903.9162
> >  *
> >  * "Censorship always defeats its own purpose,
> >  *  for it creates in the end the kind of society 
> >  *  that is incapable of exercising real discretion."
> >  *  --Henry Steele Commager, Historian
> >  */
> > 
> > 
> ---------------------------------------------------------------------
> > 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
> 
> 

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