sks-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sks-devel] RPoxy + port 80 -- Apache 2.4


From: Phil Benchoff
Subject: Re: [Sks-devel] RPoxy + port 80 -- Apache 2.4
Date: Thu, 26 Jul 2012 14:10:55 -0400

On Thu, Jul 26, 2012 at 12:55:48PM -0500, John Clizbe wrote:
> I'm trying to get the headers to work correctly for Apache 2.4. I have Apache
> listening on ports 80 & 11371. SKS is on port 11372
> 
> The vhost in httpd.conf is
> 
> <VirtualHost *:11371>
>      ServerName keyserver.gingerbear.net
>      ServerAdmin address@hidden
>      <Proxy *>
>          Order deny,allow
>          Allow from all
>     </Proxy>
>     ProxyPass / http://127.0.0.1:11372/
>     ProxyPassReverse / http://127.0.0.1:11372/
>     ProxyAddHeaders On
>     SetEnv proxy-nokeepalive 1
> </VirtualHost>
> 
> checking with wget:
> 
> $ wget -S http://keyserver.gingerbear.net:11371
> --12:46:44--  http://keyserver.gingerbear.net:11371/
>            => `index.html.8'
> Resolving keyserver.gingerbear.net... 173.175.199.93
> Connecting to keyserver.gingerbear.net|173.175.199.93|:11371... connected.
> HTTP request sent, awaiting response...
>   HTTP/1.1 200 OK
>   Date: Thu, 26 Jul 2012 17:46:45 GMT
>   Server: sks_www/1.1.3+
>   Cache-Control: no-cache
>   Pragma: no-cache
>   Expires: 0
>   Content-length: 3827
>   Content-type: text/html; charset=UTF-8
>   Keep-Alive: timeout=5, max=100
>   Connection: Keep-Alive
> Length: 3,827 (3.7K) [text/html]
> 
> $ wget -S http://www.gingerbear.net
> --12:53:49--  http://www.gingerbear.net/
>            => `index.html.9'
> Resolving www.gingerbear.net... 173.175.199.93
> Connecting to www.gingerbear.net|173.175.199.93|:80... connected.
> HTTP request sent, awaiting response...
>   HTTP/1.1 200 OK
>   Date: Thu, 26 Jul 2012 17:53:50 GMT
>   Server: Apache/2.4.2 (Unix)
>   Last-Modified: Sat, 20 Nov 2004 20:16:24 GMT
>   ETag: "2c-3e9564c23b600"
>   Accept-Ranges: bytes
>   Content-Length: 44
>   Keep-Alive: timeout=5, max=100
>   Connection: Keep-Alive
>   Content-Type: text/html
> Length: 44 [text/html]
> 
> Is there a way to get the proxied Server: header changed from sks-www?

Probably not and I'm not sure you should.

Add "ProxyVia On" and that will add a Via: header which the script now
looks for.

http://httpd.apache.org/docs/2.4/mod/mod_proxy.html#proxyvia

Phil



reply via email to

[Prev in Thread] Current Thread [Next in Thread]