I think the problem is in /etc/nginx/sites-enabled/diretorio where i configurated the nginx
# HTTP
server {
listen 80;
listen [::]:80;
server_name 191.252.92.101;
# Add index.php to the list if you are using PHP
index index.html index.htm index.nginx-debian.html index.php;
# ATTENTION: /home/apjor/app_repo/data/web/static
location /static {
autoindex on;
alias /home/apjor/app_repo/data/web/static;
}
# ATTENTION: /home/apjor/app_repo/data/web/media
location /media {
autoindex on;
alias /home/apjor/app_repo/data/web/media;
}
# ATTENTION: diretorio
location / {
proxy_pass http://unix:/run/diretorio;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
location ~ /\.ht {
deny all;
}
location ~ /\. {
access_log off;
log_not_found off;
deny all;
}
gzip on;
gzip_disable "msie6";
gzip_comp_level 6;
gzip_min_length 1100;
gzip_buffers 4 32k;
gzip_proxied any;
gzip_types
text/plain
text/css
text/js
text/xml
text/javascript
application/javascript
application/x-javascript
application/json
application/xml
application/rss+xml
image/svg+xml;
access_log off;
#access_log /var/log/nginx/191.252.92.101-access.log;
error_log /var/log/nginx/191.252.92.101-error.log;
}