How to use Hiawatha's Reverse Proxy?

Using applications, configuring, problems
Post Reply
Message
Author
User avatar
JamesTheAwesomeDude
Posts: 99
Joined: Tue 29 Jan 2013, 17:17
Location: Classified

How to use Hiawatha's Reverse Proxy?

#1 Post by JamesTheAwesomeDude »

I'm trying to use Hiawatha as a "proxy" filterer for my Transmission Web Interface (basically, just something to provide HTTPS,) and here's what I've got:

/etc/hiawatha/hiawatha.conf:

Code: Select all

ServerId = webuser
ConnectionsTotal = 150
ConnectionsPerIP = 10
SystemLogfile = /var/log/hiawatha/system.log
GarbageLogfile = /var/log/hiawatha/garbage.log
 
Binding {
	Port = 80
	Interface = 0.0.0.0
#Interface = 127.0.0.1
}
 
Binding {
	Port = 443
	SSLcertFile = /serverkey.pem
}
 
Hostname = 127.0.0.1
WebsiteRoot = /root/Web-Server
StartFile = index.html
AccessLogfile = /var/log/hiawatha/access.log
ErrorLogfile = /var/log/hiawatha/error.log
 
#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
VirtualHost {
	# My subdomain:
	Hostname = torrent.*******************.**
	# Transmission Web Interface is running at port 8080
	ReverseProxy .* http://127.0.0.1:8080/
	# THAT ^ line always says syntax error. I don't now why.
	# Don't want the Feds breaking down my door, do we? ;) JUST KIDDING.
	RequireSSL = yes
}
So what do I need to put there? The official instructions are here, but I can't make anything work. (Scroll about 5/8 of the way down the page, or CTRL-F for "Reverse".)
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=84349][img]http://i.imgur.com/Zw6vryI.png[/img][color=#3B6EA3][b][size=200] Version 27. Dotpet. Click here.[/size]
(SFS available too!)[/b][/color][/url]

npierce
Posts: 858
Joined: Tue 29 Dec 2009, 01:40

#2 Post by npierce »

What version of hiawatha do you have?

Code: Select all

hiawatha -v
Hiawatha Changelog wrote:hiawatha (8.3) stable; urgency=low

ReverseProxy option added.
PolarSSL updated to version 1.1.3.

-- Hugo Leisink <hugo@leisink.net> Wed, 23 May 2012 18:11:56 +0200

User avatar
JamesTheAwesomeDude
Posts: 99
Joined: Tue 29 Jan 2013, 17:17
Location: Classified

#3 Post by JamesTheAwesomeDude »

I'm running the default included with Slacko Puppy 5.4.

...it's v6.17.1 :oops:


Where can I find an updated version of it? The site only offers useless source code. There are some unofficial ports, including some for Slackware, but I coudn't figure out how to install it. Could somebody provide a dotpet?
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=84349][img]http://i.imgur.com/Zw6vryI.png[/img][color=#3B6EA3][b][size=200] Version 27. Dotpet. Click here.[/size]
(SFS available too!)[/b][/color][/url]

User avatar
JamesTheAwesomeDude
Posts: 99
Joined: Tue 29 Jan 2013, 17:17
Location: Classified

#4 Post by JamesTheAwesomeDude »

Just for fun, I tried installing the i686 Debian package, and...IT INSTALLED!

hiawatha -v said 8.8, the latest version.

After some fiddling around with the domain settings, Transmission's security settings, and a few other things, I GOT IT WORKING!!! :D

Now, *******************.tk and www.*******************.tk give a web server, but torrent.*******************.tk gets you to the Transmission Web interface (after authorization, of course,) WHICH LOADS IN HTTPS!
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=84349][img]http://i.imgur.com/Zw6vryI.png[/img][color=#3B6EA3][b][size=200] Version 27. Dotpet. Click here.[/size]
(SFS available too!)[/b][/color][/url]

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

slacko Hiawatha 8.8

#5 Post by rockedge »

http://slackbuilds.org/result/?search=hiawatha&sv=

I used the Debian package installed by PET manager on Lucid 5.2.8 worked right away. I have not tried on Slacko yet.

User avatar
JamesTheAwesomeDude
Posts: 99
Joined: Tue 29 Jan 2013, 17:17
Location: Classified

Re: slacko Hiawatha 8.8

#6 Post by JamesTheAwesomeDude »

rockedge wrote:http://slackbuilds.org/result/?search=hiawatha&sv=

I used the Debian package installed by PET manager on Lucid 5.2.8 worked right away. I have not tried on Slacko yet.
PPM in Slacko doesn't have any results for "hiawatha" or even "hia". Everythink at that link for Slackware builds is out of date (latest one there is 8.3; current latest version of Hiawatha is 8.8,) but the Debian package works like a charm (even on Slacko!) and is completely up-to-date.
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=84349][img]http://i.imgur.com/Zw6vryI.png[/img][color=#3B6EA3][b][size=200] Version 27. Dotpet. Click here.[/size]
(SFS available too!)[/b][/color][/url]

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#7 Post by 01micko »

Thanks for reminding me, I need to update hiawatha.. I am running 8.6 on my server.
Puppy Linux Blog - contact me for access

Post Reply