You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ws.apache.org by Davanum Srinivas <di...@yahoo.com> on 2003/08/27 20:24:35 UTC

Re: webservices.apache.org should point to minotaur

Am ok with that. CC'ing WS-PMC as well.

-- dims

--- Brian Behlendorf <br...@collab.net> wrote:
> On Wed, 27 Aug 2003, Davanum Srinivas wrote:
> > Need to redirect webservices.apache.org to the same machine as ws.apache.org
> 
> Done.  We really should set up an HTTP redirect to ws.apache.org, though.
> 
> 	Brian
> 


=====
Davanum Srinivas - http://webservices.apache.org/~dims/

Re: webservices.apache.org should point to minotaur

Posted by Daniel Rall <dl...@finemaltcoding.com>.
[Having some mail problems, not sure if this went through the first time 
around.]

Davanum Srinivas wrote:
> Am ok with that. CC'ing WS-PMC as well.
> 
> -- dims
> 
> --- Brian Behlendorf <br...@collab.net> wrote:
> 
>>On Wed, 27 Aug 2003, Davanum Srinivas wrote:
>>
>>>Need to redirect webservices.apache.org to the same machine as ws.apache.org
>>
>>Done.  We really should set up an HTTP redirect to ws.apache.org, though.

I applied the following patch to the httpd configuration on minotaur, 
and made it live.  A big thanks to Ed Korthof -- master of all things 
httpd.conf -- for help with activating the rewrite engine for our vhost.


--- /home/dlr/others.conf.orig  Thu Aug 28 12:55:00 2003
+++ /usr/local/apache2-install/www.apache.org/conf/vhosts/others.conf 
Thu Aug
28 13:03:38 2003
@@ -133,6 +133,12 @@
     DocumentRoot /x1/www/ws.apache.org
     ServerName ws.apache.org
     ServerAlias webservices.apache.org ws-new.apache.org
+
+   # webservices is a valid alias, but content is accessed via ws.
+   RewriteEngine on
+   RewriteOptions inherit
+   RewriteCond %{HTTP_HOST} webservices.apache.org [NC]
+   RewriteRule ^(.*)$ http://ws.apache.org$1 [R=permanent,L]
  </VirtualHost>

  <VirtualHost *>


If there's a way to do this without rewrite rules, I'm all ears.  I 
couldn't come up with one because of the need to get at the HTTP Host 
header.

Note: This does not avoid the access of the "European Patentability 
rules" splash screen which is currently up as the index.html page on all 
.apache.org sites.


- Dan


Re: webservices.apache.org should point to minotaur

Posted by Greg Stein <gs...@lyra.org>.
Yup. There is no need for the rewrite engine. Just use a different vhost
with the redirect. Clean and simple.

/me whacks EdK for using a sledgehammer all the time... :-)

Cheers,
-g

On Thu, Aug 28, 2003 at 04:55:16PM -0700, Brian Behlendorf wrote:
> 
> Redirect already does the matching of the end piece; that is, the piece I
> proposed will redirect http://webservices.apache.org/blahblah to
> http://ws.apache.org/blahblah.
> 
> 	Brian
> 
> On Thu, 28 Aug 2003, Daniel Rall wrote:
> > That would avoid mod_rewrite, and conceptually might be a better idea.
> > I don't know enough about httpd's internals to say definitively (adding
> > infrastructure@ for comment), but assuming it is preferred, something
> > like this would catch all URLs:
> >
> > RedirectMatch permanent ^/(.*)$ http://ws.apache.org/$1
> >
> > Brian Behlendorf wrote:
> > > You could have also just created a vhost section specifically for
> > > webservices.apache.org, and placed a single
> > >
> > > Redirect / http://ws.apache.org/
> > >
> > > but this works too, looks like.
> > >
> > > 	Brian

-- 
Greg Stein, http://www.lyra.org/

Re: webservices.apache.org should point to minotaur

Posted by Brian Behlendorf <br...@collab.net>.
Redirect already does the matching of the end piece; that is, the piece I
proposed will redirect http://webservices.apache.org/blahblah to
http://ws.apache.org/blahblah.

	Brian

On Thu, 28 Aug 2003, Daniel Rall wrote:
> That would avoid mod_rewrite, and conceptually might be a better idea.
> I don't know enough about httpd's internals to say definitively (adding
> infrastructure@ for comment), but assuming it is preferred, something
> like this would catch all URLs:
>
> RedirectMatch permanent ^/(.*)$ http://ws.apache.org/$1
>
> Brian Behlendorf wrote:
> > You could have also just created a vhost section specifically for
> > webservices.apache.org, and placed a single
> >
> > Redirect / http://ws.apache.org/
> >
> > but this works too, looks like.
> >
> > 	Brian

Re: webservices.apache.org should point to minotaur

Posted by Daniel Rall <dl...@finemaltcoding.com>.
That would avoid mod_rewrite, and conceptually might be a better idea. 
I don't know enough about httpd's internals to say definitively (adding 
infrastructure@ for comment), but assuming it is preferred, something 
like this would catch all URLs:

RedirectMatch permanent ^/(.*)$ http://ws.apache.org/$1

Brian Behlendorf wrote:
> You could have also just created a vhost section specifically for
> webservices.apache.org, and placed a single
> 
> Redirect / http://ws.apache.org/
> 
> but this works too, looks like.
> 
> 	Brian
> 
> On Thu, 28 Aug 2003, Daniel Rall wrote:
> 
>>--- /home/dlr/others.conf.orig  Thu Aug 28 12:55:00 2003
>>+++ /usr/local/apache2-install/www.apache.org/conf/vhosts/others.conf
>>Thu Aug
>>28 13:03:38 2003
>>@@ -133,6 +133,12 @@
>>     DocumentRoot /x1/www/ws.apache.org
>>     ServerName ws.apache.org
>>     ServerAlias webservices.apache.org ws-new.apache.org
>>+
>>+   # webservices is a valid alias, but content is accessed via ws.
>>+   RewriteEngine on
>>+   RewriteOptions inherit
>>+   RewriteCond %{HTTP_HOST} webservices.apache.org [NC]
>>+   RewriteRule ^(.*)$ http://ws.apache.org$1 [R=permanent,L]
>>  </VirtualHost>
>>
>>  <VirtualHost *>
>>
>>
>>If there's a way to do this without rewrite rules, I'm all ears.  I
>>couldn't come up with one because of the need to get at the HTTP Host
>>header.
>>
>>Note: This does not avoid the access of the "European Patentability
>>rules" splash screen which is currently up as the index.html page on all
>>.apache.org sites.
>>
>>
>>- Dan


Re: webservices.apache.org should point to minotaur

Posted by Brian Behlendorf <br...@collab.net>.
You could have also just created a vhost section specifically for
webservices.apache.org, and placed a single

Redirect / http://ws.apache.org/

but this works too, looks like.

	Brian

On Thu, 28 Aug 2003, Daniel Rall wrote:
> --- /home/dlr/others.conf.orig  Thu Aug 28 12:55:00 2003
> +++ /usr/local/apache2-install/www.apache.org/conf/vhosts/others.conf
> Thu Aug
> 28 13:03:38 2003
> @@ -133,6 +133,12 @@
>      DocumentRoot /x1/www/ws.apache.org
>      ServerName ws.apache.org
>      ServerAlias webservices.apache.org ws-new.apache.org
> +
> +   # webservices is a valid alias, but content is accessed via ws.
> +   RewriteEngine on
> +   RewriteOptions inherit
> +   RewriteCond %{HTTP_HOST} webservices.apache.org [NC]
> +   RewriteRule ^(.*)$ http://ws.apache.org$1 [R=permanent,L]
>   </VirtualHost>
>
>   <VirtualHost *>
>
>
> If there's a way to do this without rewrite rules, I'm all ears.  I
> couldn't come up with one because of the need to get at the HTTP Host
> header.
>
> Note: This does not avoid the access of the "European Patentability
> rules" splash screen which is currently up as the index.html page on all
> .apache.org sites.
>
>
> - Dan
>

Re: webservices.apache.org should point to minotaur

Posted by Daniel Rall <dl...@finemaltcoding.com>.
Davanum Srinivas wrote:
> Whichever is easier and less intrusive :)
> 
> -- dims
> 
> --- Daniel Rall <dl...@finemaltcoding.com> wrote:
> 
>>Brian Behlendorf wrote:
>>
>>>On Thu, 28 Aug 2003, Sanjiva Weerawarana wrote:
>>>
>>>
>>>>I'm confused - are webservices.apache.org and ws.apache.org
>>>>different boxes?? What's the rationale for that? Why do we need
>>>>two separate places - I understand having one as a CNAME for the
>>>>other but that's it.
>>>
>>>
>>>webservices.apache.org should redirect to ws.apache.org because it's
>>>generally bad form to have two URLs that refer to the same piece of
>>>content.  It pollutes proxies and search engines, for example, and every
>>>time you bring up a new service you need to do so for both hostnames.  If
>>>the canonical name for the project is "ws.apache.org", and "webservices"
>>>is provided as a favor for those who can remember that, that's fine.
>>
>>I agree.  Shall I configure this in ws.apache.org's top level .htaccess 
>>file, or in minotaur's httpd.conf?

I applied the following patch to the httpd configuration on minotaur, 
and made it live.  A big thanks to Ed Korthof -- master of all things 
httpd.conf -- for help with activating the rewrite engine for our vhost.


--- /home/dlr/others.conf.orig  Thu Aug 28 12:55:00 2003
+++ /usr/local/apache2-install/www.apache.org/conf/vhosts/others.conf 
Thu Aug
28 13:03:38 2003
@@ -133,6 +133,12 @@
     DocumentRoot /x1/www/ws.apache.org
     ServerName ws.apache.org
     ServerAlias webservices.apache.org ws-new.apache.org
+
+   # webservices is a valid alias, but content is accessed via ws.
+   RewriteEngine on
+   RewriteOptions inherit
+   RewriteCond %{HTTP_HOST} webservices.apache.org [NC]
+   RewriteRule ^(.*)$ http://ws.apache.org$1 [R=permanent,L]
  </VirtualHost>

  <VirtualHost *>


If there's a way to do this without rewrite rules, I'm all ears.  I 
couldn't come up with one because of the need to get at the HTTP Host 
header.

Note: This does not avoid the access of the "European Patentability 
rules" splash screen which is currently up as the index.html page on all 
.apache.org sites.


- Dan


Re: webservices.apache.org should point to minotaur

Posted by Davanum Srinivas <di...@yahoo.com>.
Whichever is easier and less intrusive :)

-- dims

--- Daniel Rall <dl...@finemaltcoding.com> wrote:
> Brian Behlendorf wrote:
> > On Thu, 28 Aug 2003, Sanjiva Weerawarana wrote:
> > 
> >>I'm confused - are webservices.apache.org and ws.apache.org
> >>different boxes?? What's the rationale for that? Why do we need
> >>two separate places - I understand having one as a CNAME for the
> >>other but that's it.
> > 
> > 
> > webservices.apache.org should redirect to ws.apache.org because it's
> > generally bad form to have two URLs that refer to the same piece of
> > content.  It pollutes proxies and search engines, for example, and every
> > time you bring up a new service you need to do so for both hostnames.  If
> > the canonical name for the project is "ws.apache.org", and "webservices"
> > is provided as a favor for those who can remember that, that's fine.
> 
> I agree.  Shall I configure this in ws.apache.org's top level .htaccess 
> file, or in minotaur's httpd.conf?
> 
> - Dan
> 


=====
Davanum Srinivas - http://webservices.apache.org/~dims/

Re: webservices.apache.org should point to minotaur

Posted by Daniel Rall <dl...@finemaltcoding.com>.
Brian Behlendorf wrote:
> On Thu, 28 Aug 2003, Sanjiva Weerawarana wrote:
> 
>>I'm confused - are webservices.apache.org and ws.apache.org
>>different boxes?? What's the rationale for that? Why do we need
>>two separate places - I understand having one as a CNAME for the
>>other but that's it.
> 
> 
> webservices.apache.org should redirect to ws.apache.org because it's
> generally bad form to have two URLs that refer to the same piece of
> content.  It pollutes proxies and search engines, for example, and every
> time you bring up a new service you need to do so for both hostnames.  If
> the canonical name for the project is "ws.apache.org", and "webservices"
> is provided as a favor for those who can remember that, that's fine.

I agree.  Shall I configure this in ws.apache.org's top level .htaccess 
file, or in minotaur's httpd.conf?

- Dan


Re: webservices.apache.org should point to minotaur

Posted by Davanum Srinivas <di...@yahoo.com>.
Brian,

+1 to set up the redirects. Please go ahead if we don't hear a -1 from anyone by end of business
today. (or let me know how to do it :)

thanks,
-- dims

--- Brian Behlendorf <br...@collab.net> wrote:
> On Thu, 28 Aug 2003, Sanjiva Weerawarana wrote:
> > I'm confused - are webservices.apache.org and ws.apache.org
> > different boxes?? What's the rationale for that? Why do we need
> > two separate places - I understand having one as a CNAME for the
> > other but that's it.
> 
> webservices.apache.org should redirect to ws.apache.org because it's
> generally bad form to have two URLs that refer to the same piece of
> content.  It pollutes proxies and search engines, for example, and every
> time you bring up a new service you need to do so for both hostnames.  If
> the canonical name for the project is "ws.apache.org", and "webservices"
> is provided as a favor for those who can remember that, that's fine.
> 
> 	Brian
> 


=====
Davanum Srinivas - http://webservices.apache.org/~dims/

Re: webservices.apache.org should point to minotaur

Posted by Brian Behlendorf <br...@collab.net>.
On Thu, 28 Aug 2003, Sanjiva Weerawarana wrote:
> I'm confused - are webservices.apache.org and ws.apache.org
> different boxes?? What's the rationale for that? Why do we need
> two separate places - I understand having one as a CNAME for the
> other but that's it.

webservices.apache.org should redirect to ws.apache.org because it's
generally bad form to have two URLs that refer to the same piece of
content.  It pollutes proxies and search engines, for example, and every
time you bring up a new service you need to do so for both hostnames.  If
the canonical name for the project is "ws.apache.org", and "webservices"
is provided as a favor for those who can remember that, that's fine.

	Brian


Re: webservices.apache.org should point to minotaur

Posted by Davanum Srinivas <di...@yahoo.com>.
there was a minor hiccup when the web sites were moved to minotaur. as of right now both
webservices.apache.org and ws.apache.org point to the same physical machine minotaur.

-- dims

--- Sanjiva Weerawarana <sa...@watson.ibm.com> wrote:
> I'm confused - are webservices.apache.org and ws.apache.org
> different boxes?? What's the rationale for that? Why do we need
> two separate places - I understand having one as a CNAME for the
> other but that's it.
> 
> Sanjiva.
> 
> ----- Original Message -----
> From: "Davanum Srinivas" <di...@yahoo.com>
> To: "Brian Behlendorf" <br...@collab.net>
> Cc: <pm...@ws.apache.org>; <ge...@ws.apache.org>
> Sent: Thursday, August 28, 2003 12:24 AM
> Subject: Re: webservices.apache.org should point to minotaur
> 
> 
> > Am ok with that. CC'ing WS-PMC as well.
> >
> > -- dims
> >
> > --- Brian Behlendorf <br...@collab.net> wrote:
> > > On Wed, 27 Aug 2003, Davanum Srinivas wrote:
> > > > Need to redirect webservices.apache.org to the same machine as
> ws.apache.org
> > >
> > > Done.  We really should set up an HTTP redirect to ws.apache.org,
> though.
> > >
> > > Brian
> > >
> >
> >
> > =====
> > Davanum Srinivas - http://webservices.apache.org/~dims/
> 


=====
Davanum Srinivas - http://webservices.apache.org/~dims/

Re: webservices.apache.org should point to minotaur

Posted by Sanjiva Weerawarana <sa...@watson.ibm.com>.
I'm confused - are webservices.apache.org and ws.apache.org
different boxes?? What's the rationale for that? Why do we need
two separate places - I understand having one as a CNAME for the
other but that's it.

Sanjiva.

----- Original Message -----
From: "Davanum Srinivas" <di...@yahoo.com>
To: "Brian Behlendorf" <br...@collab.net>
Cc: <pm...@ws.apache.org>; <ge...@ws.apache.org>
Sent: Thursday, August 28, 2003 12:24 AM
Subject: Re: webservices.apache.org should point to minotaur


> Am ok with that. CC'ing WS-PMC as well.
>
> -- dims
>
> --- Brian Behlendorf <br...@collab.net> wrote:
> > On Wed, 27 Aug 2003, Davanum Srinivas wrote:
> > > Need to redirect webservices.apache.org to the same machine as
ws.apache.org
> >
> > Done.  We really should set up an HTTP redirect to ws.apache.org,
though.
> >
> > Brian
> >
>
>
> =====
> Davanum Srinivas - http://webservices.apache.org/~dims/