Forum

Digest auth, ShowIndex settings of the .hiawatha file in an alias dire

Ali
15 July 2012, 10:31
My schema for the virtual hosts on my server is this:
var/www/domain.tld/http
/var/www/domain.tld/logs


Because I'd like to access my logs through browser, I've modified the standart UrlToolkit offered for WordPress and created an alias for the "logs" directory.

UrlToolkit {
ToolkitID = wordpress
RequestURI exists Return
Match ^/logs(/)$ Exit
Match .* Rewrite /index.php
}

VirtualHost {
Hostname = domain.tld
WebsiteRoot = /var/www/domain.tld/http/blog
StartFile = index.php
Alias = /logs:/var/www/domain.tld/logs
AccessLogfile = /var/www/domain.tld/logs/wp-access.log
ErrorLogfile = /var/www/domain.tld/logs/wp-error.log
TimeForCGI = 15
UseFastCGI = PHP5
UseToolkit = wordpress

WebDAVapp = no

DenyBody = ^.*%3Cscript.*%3C%2Fscript%3E.*$
DenyBody = ^.*%3CsCrIpT.*%3C%2FScRiPt%3E.*$
DenyBody = ^.*%3CScRiPt.*%3C%2FsCrIpT%3E.*$
DenyBody = ^.*%3CSCRIPT.*%3C%2FSCRIPT%3E.*$
DenyBody = ^.*%3CSCRIPT.*%3C%2Fscript%3E.*$
DenyBody = ^.*%3Cscript.*%3C%2FSCRIPT%3E.*$
DenyBody = ^.*%3Cmeta.*%2F%3E.*$
DenyBody = ^.*%3CMETA.*%2F%3E.*$
DenyBody = ^.*%3CMeTa.*%2F%3E.*$
DenyBody = ^.*%3CmEtA.*%2F%3E.*$
DenyBody = ^.*%3Ciframe.*%2F%3E.*$
DenyBody = ^.*%3CIFRAME.*%2F%3E.*$
ExecuteCGI = yes
PreventCSRF = yes
PreventSQLi = yes
PreventXSS = yes
}


And, created a .hiawatha and a .passwd file
ShowIndex = yes
PasswordFile = digest:.passwd
LoginMessage = logs

admin:logs:averylonghashoftheactualpasswordcreatedwithwigwam


When I try to access domain.tld/logs, it asks for password as expected, but I after I input necessary credentials it says "No input file specified." with the above settings.

When I add "StartFile = index.html" to the .hiawatha combination,

StartFile = index.html
ShowIndex = yes
PasswordFile = digest:.passwd
LoginMessage = logs


server fails with "The connection was reset" error. When I try to restart the server with /etc/init.d/hiawatha restart after this error, it says:

/etc/init.d/hiawatha: line 56: kill: (1596) - No such process


Any ideas how to fix this?

Hiawatha version: 8.4
Operating System: Debian Wheezy
Hugo Leisink
15 July 2012, 15:03
Please, follow these instructions.
Ali
16 July 2012, 16:01
Sent the report, hope it helps.
This topic has been closed.