On my server, nginx proxies, and apache is behind it. There is such a problem that when I write a link in the form: https://example.com/orders/
, then everything is fine. And if at the end I don’t add a slash, the page simply doesn’t load and Conection Timed Out appears. And I just can not figure out whose fault it is - apache2 or nginx. What is the problem?
server { listen 80; server_name jamesjgoodwin.ru www.jamesjgoodwin.ru; location ~ /.ht { deny all; } location / { if ($http_host ~ "\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}") { return 444; } rewrite ^(.*)$ https://jamesjgoodwin.ru$1 permanent; } location ~* \.(html|jpeg|jpg|gif|png|css|js|pdf|txt|tar|ico)$ { root /var/www/; expires 30d; } } server { listen 443 ssl; server_name jamesjgoodwin.ru www.jamesjgoodwin.ru; ssl on; ssl_certificate /etc/ssl/jamesjgoodwin.crt; ssl_certificate_key /etc/ssl/jamesjgoodwin.key; location / { proxy_pass http://127.0.0.1:81; index index.html index.php; proxy_redirect default; } }