Serving an alternate robots.txt for SSL requests.

Dave Cheney dave at cheney.net
Wed Jan 14 02:59:14 MSK 2009



> Does anybody know if this is possible to do within a single server 
> context that handle both protocols in version 0.7.*?
> 
> Thanks.
> 

I prefer to put my vhost definitions in a seperate file so my version of
this would look something like this

server {
    listen 80;
    include vhost.d/vhost.conf;
}

server {
    listen 443;
    include ssl.conf;

    location = /robots.txt { ... }

    include vhost.d/vhost.conf;
}

Cheers

Dave





More information about the nginx mailing list