Serving an alternate robots.txt for SSL requests.

Dave Cheney dave at cheney.net
Wed Jan 14 11:39:12 MSK 2009


That is AWESOME Igor.

Cheers

Dave

On 14/01/2009, at 5:57 PM, Igor Sysoev wrote:

> If your servers are different only in this part, then in 0.7 you can
>
>     server {
>         listen 80;
>         listen 443 default ssl;
>
>         location = /robots.txt {
>             if ($server_port = 443) {                # or ($scheme =  
> https)
>                  rewrite ^   /robots_ssl.txt  last;  # or "break;"
>             }
>         }






More information about the nginx mailing list