FoolCode / FoOlSlide

[NO LONGER MAINTAINED] Online Comics Publishing Software for Authors and Teams
http://foolcode.github.com/FoOlSlide/
Other
115 stars 64 forks source link

Nginx HTTP to HTTPS redirect (Core Based) #35

Closed oscarsmx closed 11 years ago

oscarsmx commented 11 years ago

Seems like in a fresh install of foolslide on nginx with the vhost provide by foolslide the foolslide core redirect all the clickeable links to https.

oohnoitz commented 11 years ago

That shouldn't be happening. Could you provide us with a copy of your server block?

oscarsmx commented 11 years ago

http://foolrulez.org/forums/index.php?topic=6645.0

server { listen 80; server_name localhost 192.30.xx.xx xx.com xx.com;

            access_log /var/log/nginx/xx.com.access_log;
            error_log /var/log/nginx/xx.com.error_log;

            root /home/xx.com/public/;
            index index.php index.htm index.html;

location / { try_files $uri $uri/ /index.php; }

            location ~ \.php$ {
            fastcgi_pass 127.0.0.1:9000;
            include fastcgi_params;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            fastcgi_param SERVER_NAME $http_host;
            fastcgi_ignore_client_abort on;
            fastcgi_buffer_size 16k;
            fastcgi_buffers 4 16k;
            }
   }

Best Regards.

oohnoitz commented 11 years ago

It is possible that your fastcgi_params file is misconfigured and passing an incorrect value to PHP. You can force HTTPS off by using the following setting in your location block: fastcgi_param HTTPS off;.

oscarsmx commented 11 years ago

Yeah, I try that before your answer after a little research.

Thanks anyway its fixed and yes, it was that.

BTW, you guys should add something like "external direct download" with the function to add links to fileservers like mediafire etc.

Best Regards.