Forum

Hiawatha sends nothing but index.html

Stefan
23 March 2012, 07:59
Hi,

for some reason Hiawatha doesn't send js- or css-files. Chrome logs e.g.
GET http://localhost:8088/js/lib/jquery.layout-1.3.0.min.js 503 (Service Unavailable)
The app loads fine when using Apache.
The error.log complains about just one of those files, but not always the same and not the first it should load:
127.0.0.1|Fri 23 Mar 2012 07:51:26 +0000|/cygdrive/c/Server/webroot/dacius/desktop/js/lib/jquery-1.7.1.min.js|error while sending response

Guess I'm doing sth. wrong...
Thanks for hints,

Stefan

Hiawatha version: 8.1
Operating System: Win7 64
Hugo Leisink
24 March 2012, 21:26
Hiawatha can of course send .js or .css files. They're just textfiles. Can you show me your configuration file?
Stefan
26 March 2012, 19:01
My hiawatha.conf looks like this:
ConnectionsTotal = 150
ConnectionsPerIP = 10
SystemLogfile = /cygdrive/c/Program Files/Hiawatha/log/system.log
GarbageLogfile = /cygdrive/c/Program Files/Hiawatha/log/garbage.log

Binding {
Port = 8088
Interface = 127.0.0.1
}

CGIhandler = C:\Server\PHP\php-cgi.exe:php

Hostname = 127.0.0.1
WebsiteRoot = C:\Server\webroot\dacius\desktop
StartFile = index.html
AccessLogfile = /cygdrive/c/Program Files/Hiawatha/log/access.log
ErrorLogfile = /cygdrive/c/Program Files/Hiawatha/log/error.log

Directory {
Path = C:\Server\webroot\dacius\desktop
ExecuteCGI = yes
UploadSpeed = 10,2
}

I tried several ways of giving the folders
(WebsiteRoot and Directory path):

C:\Server\webroot\dacius\desktop
C:/Server/webroot/dacius/desktop
/cygdrive/c/Server/webroot/dacius/desktop

Also with closing (back)slash.
Hugo Leisink
27 March 2012, 07:25
Have you read about the UploadSpeed setting or did you just enable it without knowing what it does? The 2 in the value means no more than 2 clients at the same time. Since your browser sets up more than 1, or even 2, connections, it causes Hiawatha to deny a third or more. Remove it, it probably not what you want.
Stefan
27 March 2012, 09:13
Thanks Hugo!

For me an upload means sending a file from the client to the server, but it restricts the download from the server to the client !? Even after reading about it in the manual page I thought this is a bandwidth-protection-feature when uploading files from a client. A warning and/or some more sentences about what upload means here would be nice.
This topic has been closed.