All posts by PF

Apache mod_alias – Not Found

I was facing a ‘Not found’ using alias/mod_alias.

Not Found
The requested URL /home/ftp (…..) /index.php was not found on this server.

Alias "/ps/" "/home/ftpuser/ps/"
<Directory "/home/ftpuser/ps/">
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>

Apache was searching the file in /var/www/html/home/ftp

File does not exist: /var/www/html/home/ftpuser/ (...) /index.php

To solve it I had to tweak .htaccess and set RewriteBase.

RewriteBase /ps/admin/

nginx proxy timeout

*1751 upstream timed out (110: Connection timed out) while reading response header from upstream

nginx errror log

On the location /proxed/ { or your proxy_pass

proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
send_timeout 600;