Problems, need help? Have a tip or advice? Post it here.
4 posts Page 1 of 1
I have the same content available over both http and https, and noticed that when I went to the admin pannel using SSL, the stylesheet didn't load properly. Turns out all couch generated links are http ones, but using the SSL port.

Is it me running the (non production) site on nginx and a slightly outdated version of PHP, or does couch have problems detecting SSL properly? I think it should be able to handle that on its own, without the need for some fancy PHP in the config ;)
Couch is expected to sense that https is on. I am not sure what is causing it to fail (probably your server is not setting the $_SERVER['HTTPS'] global variable properly) but it is precisely for such eventualities that we have provided the override in config.php
Code: Select all
define( 'K_SITE_URL', '' );

It is a straightforward setting - nothing really "fancy" in it.
Could you please try setting the expected URL in config.php and let me know if the site works ok?

Also, if possible, could you grant me guest access to your SSL site. I'd like to find out what is causing this error.

The server did indeed not set the HTTPS variable (fastcgi_param HTTPS on; on nginx, for reference).

Defining the site URL also works as expected, though it enforces SSL on all links. I found that the below also works and has the browser determine the protocol to use:
Code: Select all
define( 'K_SITE_URL', '//' );

Thanks for the global var pointer, is there anything you don't know, KK? :P

ps, with "fancy" I meant a script to make the define based on protocol used, but the snippet above or configuring the server properly is a better way to do it I guess :D

Thank you very much for sharing your observations.
Defining the URL without the 'http' or 'https part and having the browser figure the protocol out is an interesting way indeed :)
4 posts Page 1 of 1

Who is online

In total there are 20 users online :: 0 registered, 0 hidden and 20 guests
(based on users active over the past 5 minutes)

Users browsing this forum: No registered users and 20 guests