Forum

How to set 'Directory Protect'

Mustafa Ramadhan
28 January 2014, 19:07

Hiawatha version: 9.3.1
Operating System: CentOS 6.5

This is example for Virtualhost
## web for 'xxx.potissima.com'
VirtualHost {
----

Alias = /stats:/home/httpd/xxx.potissima.com/webstats

Directory {
Path = /stats/
PasswordFile = basic:/home/httpd/xxx.potissima.com/__dirprotect/__stats
}

....
}

But I found a problem when restart hiawatha. Always error ' Syntax error in /home/hiawatha/conf/domains/next.potissima.com.conf on line 89.' (in line 'Directory {').
Hugo Leisink
28 January 2014, 19:11
Place 'Directory { ... }' outside the VirtualHost. Directory settings apply to a specific directory, no matter what virtual host it's used by.
Mustafa Ramadhan
29 January 2014, 08:05
Thanks.

Already fixed in hiawatha/hiawatha-proxy in Kloxo-MR 6.5.1.a
This topic has been closed.