Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I am configuring full-site SSL for my Ghost blog. First I used Apache, then switched to nginx and the loop persists. I think this may be a rule error but unable to find it out.

The config file:

server {
    listen   80; ## listen for ipv4; this line is default and implied
    server_name blog.example.net;
    return 301 https://$server_name$request_uri;

server {
    listen 443;

    ssl on;
    ssl_certificate /root/certs/ssl.crt;
    ssl_certificate_key /root/certs/blog_example_net.key;

    ssl_session_timeout 5m;

    ssl_protocols SSLv3 TLSv1;
    ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP;
    ssl_prefer_server_ciphers on;

    root /var/www/ghost;

    # Make site accessible from http://localhost/
    server_name blog.example.net;

    location / {
        proxy_pass http://localhost:2368/;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

share|improve this question
What url do you enter? Where redirect points? Here I can't see any cause for redirect. –  Alexey Ten Jul 31 '14 at 8:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.