Hiawatha gurus, I need your help with URLToolkit
Posted: Sat 11 Aug 2018, 01:42
I have a simple, LAN only, HTML, hiawatha site running on a puppy in /root/Web-Server with a "index.html" file.
I'm trying to make URLTool fix URL's that don't match the site. (goofy clicks in favorites, etc.) My hiawatha.conf file:
This is on Precise 5.71 .. Anyway, the "UseToolkit = my_rewrite" isn't changing the urls to the index.html ..
Any insights would be greatly appreciated.
I'm trying to make URLTool fix URL's that don't match the site. (goofy clicks in favorites, etc.) My hiawatha.conf file:
Code: Select all
ServerId = webuser
ConnectionsTotal = 150
ConnectionsPerIP = 10
SystemLogfile = /var/log/hiawatha/system.log
GarbageLogfile = /var/log/hiawatha/garbage.log
UrlToolkit {
ToolkitID = my_rewrite
RequestURI exists Return
Match .* Rewrite /index.html
}
Binding {
Port = 80
Interface = 172.28.226.1
}
Hostname = 127.0.0.1
WebsiteRoot = /root/Web-Server
StartFile = index.html
AccessLogfile = /var/log/hiawatha/access.log
ErrorLogfile = /var/log/hiawatha/error.log
VirtualHost {
Hostname = localhost
WebsiteRoot = /root/Web-Server
StartFile = index.html
AccessLogfile = /var/log/hiawatha/access.log
ErrorLogfile = /var/log/hiawatha/error.log
UseToolkit = my_rewrite
}
#add this stuff to get a perl script working (pplog)...
#QUISP has a binary executable CGI named 'quisp.bin'...
MimetypeConfig = /etc/mime.types
#CGIhandler = /usr/bin/perl:pl
CGIextension = pl,bin
ExecuteCGI = yes
#QUISP puts %0D, %0A (carriage-return, line-feed) chars in the url
#(v128), to allow chars below ascii 32 need this...
SecureURL = no
Any insights would be greatly appreciated.