[erlang-questions] Browser not displaying images from Mochiweb server
Bob Ippolito
bob@REDACTED
Sat Sep 26 15:57:12 CEST 2015
Looks like you aren't putting the files in the right place. Impossible to
tell without the code for the server, but the default project template for
mochiweb serves static files from priv/www.
On Saturday, September 26, 2015, austin aigbe <eshikafe@REDACTED> wrote:
> Hello,
>
> My browser is unable to display images from my mochiweb server - please
> see attached file.
> I am using erlydtl for rendering.
>
> What could be the reason for this?
>
> Setup:
>
> Mochiweb
> ---------------------------
> Erlang/OTP 18
> ---------------------------
> Ubuntu 14.04.3
> ---------------------------
> VirtualBox 5.0.4
> --------------------------
> Windows 7
> -------------------------
>
>
> File structure:
>
> austin@REDACTED:~/fe$ ls -l
> total 232
> -rwxr-xr-x 1 austin austin 310 Sep 25 18:25 bench.sh
> drwxrwxr-x 5 austin austin 4096 Sep 25 19:17 deps
> drwxrwxr-x 2 austin austin 4096 Sep 26 12:06 ebin
> -rw-rw-r-- 1 austin austin 418 Sep 25 18:25 Makefile
> drwxrwxr-x 3 austin austin 4096 Sep 25 18:25 priv
> -rwxrw-r-- 1 austin austin 199962 Sep 25 19:17 rebar
> -rw-rw-r-- 1 austin austin 313 Sep 25 19:13 rebar.config
> drwxrwxr-x 2 austin austin 4096 Sep 26 12:06 src
> -rwxr-xr-x 1 austin austin 119 Sep 25 18:25 start-dev.sh
> drwxrwxr-x 3 austin austin 4096 Sep 26 11:34 templates
> austin@REDACTED:~/fe$ ls -l templates/
> total 20
> drwxrwxr-x 2 austin austin 4096 Sep 26 11:33 data
> -rw-rw-r-- 1 austin austin 16339 Sep 26 11:34 login.dtl
> austin@REDACTED:~/fe$ ls -l templates/data/
> total 668
> -rwxrwxr-x 1 austin austin 57348 Sep 25 20:05 canvas-tools.js
> -rwxrwxr-x 1 austin austin 150767 Sep 25 20:05 d3.5.5_dynatrace.js
> -rwxrwxr-x 1 austin austin 46151 Sep 25 20:05
> d3.geo.projection.v0.2.12.min.js
> -rwxrwxr-x 1 austin austin 6916 Sep 25 20:05 d3map.js
> -rwxrwxr-x 1 austin austin 2679 Sep 25 20:05 d3.tip.v0.6.3.js
> -rw-rw-r-- 1 austin austin 43649 Sep 26 11:29 dynatraceLogo.jpg
> -rwxrwxr-x 1 austin austin 7365 Sep 25 20:05 exporting.js
> -rwxrwxr-x 1 austin austin 1229 Sep 25 20:05 exportingOffline.js
> -rwxrwxr-x 1 austin austin 3773 Sep 25 20:05 fonts.css
> -rwxrwxr-x 1 austin austin 153218 Sep 25 20:05 highcharts-4.0.3.js
> -rwxrwxr-x 1 austin austin 23135 Sep 25 20:05 highcharts-4.0.3-more.js
> -rwxrwxr-x 1 austin austin 84995 Sep 25 20:05 jquery-2.1.1.min.js
> -rwxrwxr-x 1 austin austin 2287 Sep 25 20:05 jquery.gridster.extras.js
> -rwxrwxr-x 1 austin austin 43758 Sep 25 20:05 jquery.gridster.js
> -rwxrwxr-x 1 austin austin 21325 Sep 25 20:05 login_logo.png
> -rwxrwxr-x 1 austin austin 6142 Sep 25 20:05 topojson.v1.6.18.min.js
> austin@REDACTED:~/fe$
>
> Thanks.
>
> Austin
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150926/78899ba4/attachment.htm>
More information about the erlang-questions
mailing list