In a directory containing an index.html
I type python -m http.server 8085
and get:
Serving HTTP on 0.0.0.0 port 8085 (http://0.0.0.0:8085/) ...
127.0.0.1 - - [29/May/2018 08:56:40] code 404, message File not found
127.0.0.1 - - [29/May/2018 08:56:40] "GET /dist/css/bootstrap.min.css HTTP/1.1" 404 -
127.0.0.1 - - [29/May/2018 08:56:40] code 404, message File not found
127.0.0.1 - - [29/May/2018 08:56:40] "GET /assets/js/vendor/popper.min.js HTTP/1.1" 404 -
but inside the index.html
the importing lines are
<link href="../../../../dist/css/bootstrap.min.css" rel="stylesheet">
<script src="../../../../assets/js/vendor/popper.min.js"></script>
Those paths are correct relative to that directory, if I apply linux ls
to the paths between the quotes from there, it finds them.
Inside the console of the browser, it is complaining similarly:
Loading failed for the <script> with source “http://0.0.0.0:8085/assets/js/vendor/popper.min.js”.
0.0.0.0:8085:131
Yes, 131 is the line with that import statement, but why is it ignoring the path in there?