tutorials icon indicating copy to clipboard operation
tutorials copied to clipboard

phpfpm static files access

Open thisroot opened this issue 6 years ago • 1 comments

Hi i use this exmple that delpoy self service which contain links on static files into the index.php. But my static files can't load

  • index.php
  <!-- Bootstrap Core CSS -->
    <link href="./css/bootstrap.min.css" rel="stylesheet">
  • nginx log
nginx_1_6e54db375ab5 | 2018/11/22 20:10:15 [error] 57#0: *5 open() "/app/js/jqBootstrapValidation.js" failed (2: No such file or directory), client: 172.18.0.1, server: myapp.com, request: "GET /js/jqBootstrapValidation.js HTTP/1.1", host: "localhost", referrer: "http://localhost/index.php"

thisroot avatar Nov 22 '18 20:11 thisroot

Hi @thisroot, are you adding the jqBootstrapValidation.js file in the app-code/js/ directory when building the Docker image?

Did you add a file that is referencing to jqBootstrapValidation.js?

andresbono avatar Nov 23 '18 11:11 andresbono