Forum

shared hosting perl config

chrisf
27 May 2014, 21:53


Hiawatha version: 9.5
Operating System: Linux

First, thank you Hugo for your hard work and amazing web server.

I am by trade a php/web developer. I am setting up a KloxoMR webserver, Hiawatha reverse proxy to Apache.

I am interested in serving perl through Hiawatha for the security. I need help in the configuration, as I am at a complete loss on how to accomplish this.

This is a production shared server. I have created custom templates to configure Hiawatha as need be, per domain, etc.

Every client has a Linux user, and a home directory of /home/[username]/ - I would like to configure Hiawatha to serve the perl files and chroot to that users home directory, as well as set the user to themselves.

Thank you greatly for your expertise.
chrisf
27 May 2014, 22:38
Also, I still want all other files (except .pl) to be reverse proxies.
chrisf
30 May 2014, 14:39
is this not possible?
Hugo Leisink
30 May 2014, 16:25
Am on holiday now. Will get back to you in the weekend.
chrisf
30 May 2014, 21:56
Thank you for your reply, have a good holiday!

Will be watching for your reply.
Hugo Leisink
1 June 2014, 07:32
Read the CGI wrapper HOWTO to chroot CGI's and to run them with the user id of a specific user.

Reverse proxying all files except .pl is not possible, yet. In 9.6, it will be possible by using "ReverseProxy !\.pl$ <target>". So, the ! is new for ReverseProxy.
chrisf
1 June 2014, 08:43
Ok, I must wait then when will 9.6 be available?

I have some questions about the wrapper but will wait til I can test (9.6)
Hugo Leisink
1 June 2014, 08:58
Hopefully, today.
This topic has been closed.