Issues with http/2 on apache_nginx (safari)

j!manager

New member
Joined
Sep 6, 2017
Messages
2
Hello,

I'm admin of VPS with configuration:
Direct Admin: 1.51.4
Nginx 1.13.3
Apache 2.4.27
OpenSSL 1.0.1e-fips (but I compiled openssl-1.1.0f and I've symlink created with instruction from other post: ln -s /usr/local/lib_http2/lib/libssl.so.1.1 /usr/lib64/libssl.so.1.1
ln -s /usr/local/lib_http2/lib/libcrypto.so.1.1 /usr/lib64/libcrypto.so.1.1)

I was perform steps from this post: http://forum.directadmin.com/showthread.php?t=52590 (without curl) and http/2 works very well except Apple devices. I don't have idea what I can do more.
My client uses iPad, iPhone and iMac and eveything what he see, is blank page and loading website. My friends with Mac - the same.

Website: https://halogorlice.info

Help, it drives me crazy :(
 
Please try DA pre-release binaries. When installed, run:
Code:
cd /usr/local/directadmin/custombuild
./build rewrite_confs
 
Please try DA pre-release binaries. When installed, run:
Code:
cd /usr/local/directadmin/custombuild
./build rewrite_confs

The problem is proxy_hide_header Upgrade. If this option is missing in the configuration (/usr/local/directadmin/data/templates/nginx*), Safari (iPhone, iPad and Mac) will not work. We also have this problem. Maybe DirectAdmin can get an update for this problem? The pre-release on production servers is not really convenient ;)

Update, see also: https://trac.nginx.org/nginx/ticket/915
 
Last edited:
The problem is proxy_hide_header Upgrade. If this option is missing in the configuration (/usr/local/directadmin/data/templates/nginx*), Safari (iPhone, iPad and Mac) will not work. We also have this problem. Maybe DirectAdmin can get an update for this problem? The pre-release on production servers is not really convenient ;)

Update, see also: https://trac.nginx.org/nginx/ticket/915

I recommended pre-release because it already has the changes. DirectAdmin never adds new features to already released versions :)
 
Thank you so much. I will check your tips and I will inform you about of impact of them
 
I am still facing to this trouble with DA 1.52. "proxy_hide_header Upgrade" is already in /etc/nginx/nginx:vhost.conf
Any idea please?
 
Anyone else faces to this issue? Installed nginx 1.13.6, but it doesn't resolve the issue. As mentioned, "proxy_hide_header Upgrade" is already in /etc/nginx/nginx:vhost.conf
 
Anyone else faces to this issue? Installed nginx 1.13.6, but it doesn't resolve the issue. As mentioned, "proxy_hide_header Upgrade" is already in /etc/nginx/nginx:vhost.conf

That isn't correct! DirectAdmin version 1.52 has the solution! If you have DirectAdmin version 1.52.0, check then /usr/local/directadmin/data/templates/custom, state there nginx_server* ? If yes, check /usr/local/directadmin/data/templates/nginx_server* and make the changes in /usr/local/directadmin/data/templates/custom/nginx_server*

If you do not have that, then echo "action=rewrite&value=nginx" >> /usr/local/directadmin/data/task.queue && /usr/local/directadmin/dataskq

The problem is then gone :)
 
Last edited:
No, it doesn't work. And yes I have DA 1.52, "proxy_hide_header Upgrade" is there. But cannot access from Safari, it just sends multiple requests to nginx.

my-ip-address - - [19/Oct/2017:07:16:43 +0200] "GET / HTTP/2.0" 200 4179 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Safari/604.1.38"
my-ip-address - - [19/Oct/2017:07:16:43 +0200] "GET / HTTP/2.0" 200 4179 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Safari/604.1.38"
my-ip-address - - [19/Oct/2017:07:16:44 +0200] "GET / HTTP/2.0" 200 4179 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Safari/604.1.38"
my-ip-address - - [19/Oct/2017:07:16:44 +0200] "GET / HTTP/2.0" 200 4179 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Safari/604.1.38"
my-ip-address - - [19/Oct/2017:07:16:44 +0200] "GET / HTTP/2.0" 200 4179 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Safari/604.1.38"
my-ip-address - - [19/Oct/2017:07:16:44 +0200] "GET / HTTP/2.0" 200 4179 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Safari/604.1.38"
my-ip-address - - [19/Oct/2017:07:16:44 +0200] "GET / HTTP/2.0" 200 4179 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Safari/604.1.38"
my-ip-address - - [19/Oct/2017:07:16:45 +0200] "GET / HTTP/2.0" 200 4179 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Safari/604.1.38"
my-ip-address - - [19/Oct/2017:07:16:45 +0200] "GET / HTTP/2.0" 200 4179 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Safari/604.1.38"
my-ip-address - - [19/Oct/2017:07:16:45 +0200] "GET / HTTP/2.0" 200 4179 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Safari/604.1.38"
my-ip-address - - [19/Oct/2017:07:16:45 +0200] "GET / HTTP/2.0" 200 4179 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Safari/604.1.38"
 
Can you have a look in /usr/local/directadmin/data/users/<USER>/nginx.conf ? is there also proxy_hide_header Upgrade? Does it work with Nginx 1.13.5? Can you send the output of /usr/local/directadmin/data/<USER>/nginx.conf?
 
Back
Top