MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Tips and Tricks => Topic started by: shaunrico on 2017-08-21, 09:25:27

Title: hiawatha proxy setting
Post by: shaunrico on 2017-08-21, 09:25:27
I was wondering what is the benefit in this setup?
Does it bring all the beneficial security of hiawatha webserver?

Title: Re: hiawatha proxy setting
Post by: MRatWork on 2017-08-21, 09:46:31
Hiawatha is very lightweight web server. Hiawatha only 2MB in idle state. Other webserver need more than 32MB.

Hiawatha is better to handle security issue.

Like nginx-proxy, hiawatha-proxy is hiawatha in front-side and apache in back-side (handle php process). With proxy, rewrite-rule via .htaccess still accept (like pure apache do).
Title: Re: hiawatha proxy setting
Post by: shaunrico on 2017-08-21, 11:15:33
this is from their website:

Security

Security is one of the key features of this webserver. Besides support for SSL (via mbed TLS), Hiawatha offers protection against SQL injections, Cross-site Scripting (XSS), Cross-site Request Forgery (CSRF/XSRF) and DoS attacks. Banning of bad behaving clients and limiting CGI runtime are examples of Hiawatha's unique security features.

Speed

Hiawatha supports several techniques to make your websites fast, like internal caching, keep-alive connection, request pipelining and a unique support for GZip Content-Encoding (read the manual for more information).


Do we get all that by enabling hiawattha reverse proxy in Kloxo?

Sorry to ask you that but I have been looking for the answer in google but I am not getting a clear picture.
Title: Re: hiawatha proxy setting
Post by: MRatWork on 2017-08-21, 11:23:48
You can choose hiawatha alone or hiawatha-proxy. If only using wordpress, hiawatha alone can handle it for their rewrite-rule (pretty-url; like 'http://domain.com/story' instead 'http://domain.com/?p=2')
Title: Re: hiawatha proxy setting
Post by: shaunrico on 2017-08-21, 11:28:25
I am asking about proxy because I need to be able to use .htaccess for cache plugin and security plugin.

That's why I am asking about the features of hiawattha proxy. Is the same as hiawattha stand alone?

What's is the difference?
Title: Re: hiawatha proxy setting
Post by: MRatWork on 2017-08-21, 11:43:16
I am asking about proxy because I need to be able to use .htaccess for cache plugin and security plugin.

That's why I am asking about the features of hiawattha proxy. Is the same as hiawattha stand alone?

What's is the difference?
Hiawatha-proxy is Hiawatha+Apache. It's mean we can get their feature together.

If you choose hiawatha-proxy, we can choose using pure hiawatha or hiawatha-proxy for each domains. Let's say, domain1 using hiawatha and domain2 using hiawatha-proxy.
Title: Re: hiawatha proxy setting
Post by: shaunrico on 2017-08-21, 14:26:07
Thanks for your answer

How would you define which domain get the pure hiawatha when I am under hiawattha proxy setting?

I can't seem to find the way to do it.
Title: Re: hiawatha proxy setting
Post by: MRatWork on 2017-08-21, 14:33:35
Go to 'admin > all > all domains > select one > web features > web selected' where 'front-end' = hiawatha and 'back-end' = hiawatha-proxy.

In the same page you can select different php version via 'php selected' if you set 'enable multiple php' in 'admin > webserver configure'.
Title: Re: hiawatha proxy setting
Post by: shaunrico on 2017-08-24, 19:52:51
I have proxy as setup but in watchdog my status of webproxy and webcache is off
does that mean that the hiawatha proxy is not working right?
Please look at the attached screenshot
Title: Re: hiawatha proxy setting
Post by: MRatWork on 2017-08-25, 01:50:45
No. watchdog not related webserver service running or not. See to 'services' to running or not.