Nginx Not Recognizing Folder Files?

Asked

Viewed 180 times

0

I am working on a Web system and using the Docker with Nginx. Nginx is not recognizing the images that compose the system nor the files that compose the Bootstrap.

Below is the default file for Nginx:

server {
listen 80;

root /usr/share/nginx/html;
index index.php index.html index.html;

server_name 192.168.0.18;

location / {
    try_files $uri /index.php$is_args$args;
}

location ~ \.php$ {
    fastcgi_split_path_info ^(.+\.php)(/.+)$;
    fastcgi_pass phpfpm:9000;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    include fastcgi_params;
   }
}

inserir a descrição da imagem aqui

  • Are files loaded? Are they interpreted by the browser? Error 404 occurs? The address of the files is being pointed out correctly?

  • Vadeir Psr, no error 404 occurs, browser is unable to interpret and are pointed correctly in HTML.

  • utilize try_files $uri $uri/ /index.php$is_args$args; and include the archive mime.types in its configuration, for example: include /etc/nginx/mime.types;

  • How you created the container?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.