Unit breaks my Drupal site in Safari browsers #1584
Replies: 9 comments 12 replies
-
Using the browsers builtin tools do you see requests for specific files failing and with what status code? |
Beta Was this translation helpful? Give feedback.
-
Brave says "no issues detected" and "0 page errors", "0 breaking changes" and "0 possible improvements". Is there anything special I should look for? |
Beta Was this translation helpful? Give feedback.
-
Still problems. I found an error in Safari's inspector after it has happened: "Failed to load resource: An SSL error has occurred and a secure conection to the server cannot be established." As i suspected, it has to to with ssl |
Beta Was this translation helpful? Give feedback.
-
And here is the Unit log: |
Beta Was this translation helpful? Give feedback.
-
I added these "conf_commands". I will see if it makes any difference: |
Beta Was this translation helpful? Give feedback.
-
No it did not. The log says: 2025/04/05 14:53:55 [info] 56331#56331 "drupal" application started Does anybode know what unsupported protocol and version to low mean? I am on Ubuntu 24.04. Openssl version is 3.0.13. |
Beta Was this translation helpful? Give feedback.
-
Update: The order in "ciphersuites": Then I tried to switch back to Nginx. To my big surprise, my site broke there as well. I attach a screenshot. As you can see it failed to load a resource. I can translate the rest: "An SSL error has occurred and a secure connection to the server cannot be established" or similar. In Unit it is a css resource that fails to load. In Nginx it is a js resource that fails to load. A refresh loads the site. I also have a test server with Unit and PHP 8.3 and a self-signed certificate. I have not been able to reproduce the resource load error there. On my live server I use PHP 8.4. Both use Ubuntu 24.04. The resource load error only occurs in Safari. Brave and Firefox have no problems. According to this page, https://tls.support, Safari does not have a feature called "TLS Session Resumption", which Brave and Firefox have. So my theory right now is that Safari has problems with PHP 8.4. Unit is not the cause. |
Beta Was this translation helpful? Give feedback.
-
I do actually doubt that. nginx/unit will be the TLS termination point. PHP shouldn't be involved. |
Beta Was this translation helpful? Give feedback.
-
How are you serving the static files? I would have assumed PHP is not involved in that. E.g. Using Unit's static share functionality... |
Beta Was this translation helpful? Give feedback.
-
Hello,
As the title says, my site is unstable in Safari. Sometimes it looks like css is not read. If I reload a couple of times, the page looks good. It happens on both mac, iphone and ipad. The strange thing is that Brave Browser and Firefox never have any problems. It is only Safari.
Below follows the code. It is Unit's Drupal template, and I have added redirection to "https" and "www". Perhaps I have not done that properly.
If anyone has imporvement suggestions I would appreciate that!
{ "listeners": { "*:80": { "pass": "routes/main" }, "*:443": { "pass": "routes/route2", "tls": { "certificate": "bundle2" } } },
"routes": {
"main": [ { "match": { "scheme": "http" }, "action": { "return": 301, "location": "https://$host$request_uri" } } ],
},
"applications": { "drupal": { "type": "php", "user": "me", "group": "me", "targets": { "direct": { "root": "/home/me/www/drupal/web/" }, "index": { "root": "/home/me/www/drupal/web/", "script": "index.php" } } } } }
Fred
Beta Was this translation helpful? Give feedback.
All reactions