I’m trying to set up Nginx as a reverse proxy for my web pages. Unfortunately, Apple devices (iPad, iPhone, macOS) have serious connectivity and performance issues.
-
On iPad, access is completely cut off - I receive
NSURLErrorDomain- timeout after several minutes -
On iPhone and Mac, pages load but with very poor performance.
-
The same pages load quickly and reliably when:
-
Connected via VPN
-
Using a cellular network
-
Connected directly to the local network
-
What I’ve tried so far
-
Forced HTTP/1.1 (since Apple devices previously had issues with newer protocols) — no improvement
-
Deployed a fresh Nginx instance on a bare-metal server
-
Tested different ports
-
Checked Nginx error logs — they are empty
Despite these changes, the issue persists. Apple devices still behave differently depending on the network path, while non-Apple devices do not show these problems.
michal@debian:/etc/nginx/sites-enabled$ cat default-ssl
server {
listen 443 ssl;
server_name _;
# SSL Certificates
ssl_certificate /etc/nginx/ssl/fullchain.pem;
ssl_certificate_key /etc/nginx/ssl/privkey.pem;
# Recommended SSL settings
#ssl_protocols TLSv1.2 TLSv1.3;
#ssl_prefer_server_ciphers on;
root /var/www/html;
# index index.html;
index index.html index.htm index.nginx-debian.html;
location / {
try_files $uri $uri/ =404;
}
}
michal@debian:/etc/nginx$ cat nginx.conf
user www-data;
worker_processes auto;
pid /run/nginx.pid;
error_log /var/log/nginx/error.log;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 768;
# multi_accept on;
}
http {
##
# Basic Settings
##
sendfile on;
tcp_nopush on;
types_hash_max_size 2048;
# server_tokens off;
# server_names_hash_bucket_size 64;
# server_name_in_redirect off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
##
# SSL Settings
##
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE
ssl_prefer_server_ciphers on;
##
# Logging Settings
##
access_log /var/log/nginx/access.log;
##
# Gzip Settings
##
gzip on;
# gzip_vary on;
# gzip_proxied any;
# gzip_comp_level 6;
# gzip_buffers 16 8k;
# gzip_http_version 1.1;
# gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
##
# Virtual Host Configs
##
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
