sks-devel
[Top][All Lists]
Advanced

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

Re: [Sks-devel] sks nginx config


From: Kristian Fiskerstrand
Subject: Re: [Sks-devel] sks nginx config
Date: Thu, 26 Jul 2012 16:40:24 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0

On 2012-07-26 15:40, Phil Benchoff wrote:
> Pulling this out of the thread about keyserver.cns.vt.edu:
> 
> Nginx can set a Via: header in http responses:
> 
>     add_header Via "1.1 keyserver.example.com";
> 
> http://wiki.nginx.org/HttpHeadersModule#add_header
> 
> (Note that it only adds the header on responses with result codes
> 200, 204, 301, 302 or 304.)
> 
> I would suggest adding this to the config example on the Peering page.
> 
> You can also serve files with nginx, so I'd suggest offloading urls
> other than /pks to nginx.
> 

This is a good idea, I just altered my own setup to reflect this, and it
now says

 server {
                listen ....:11371;

                server_name keys.kfwebs.net;

                location / {
                        root /path/to/sks/web;
                        index   index.xhtml;
                }

                location /pks {
                        proxy_pass http://127.0.0.1:11372/pks;
                        add_header Via "1.1 keys.kfwebs.net";
                }
        }



-- 
----------------------------
Kristian Fiskerstrand
http://www.sumptuouscapital.com
Twitter: @krifisk
----------------------------
Corruptissima re publica plurimæ leges
The greater the degeneration of the republic, the more of its laws
----------------------------
This email was digitally signed using the OpenPGP
standard. If you want to read more about this
The book: Sending Emails - The Safe Way: An
introduction to OpenPGP security is now
available in both Amazon Kindle and Paperback
format at
http://www.amazon.com/dp/B006RSG1S4/
----------------------------
Public PGP key 0xE3EDFAE3 at http://www.sumptuouscapital.com/pgp/

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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