Hey Matthew,

2011/9/5 Matthew Sherborne <[email protected]>:
> I'm on a similar situation.
> Running my server on the front line with no apache or anything in front of
> it.
> So I have to run it as root to be able to listen on port 80.
> I heard I have to use setuid() and fork down to another user level or
> something.
> I haven't investigated how to do it yet though.
> If anyone knows .. please share the info :)

I would believe that you should be able to do this by using WServer
instead of WRun(), and call setuid() after you have started the server
with server.start().

See the WServer documentation:
http://www.webtoolkit.eu/wt/doc/reference/html/classWt_1_1WServer.html#_details

But I think that in almost all cases it is more useful to put a
light-weight proxy in front of Wt, like haproxy ?

Regards,
koen

------------------------------------------------------------------------------
Using storage to extend the benefits of virtualization and iSCSI
Virtualization increases hardware utilization and delivers a new level of
agility. Learn what those decisions are and how to modernize your storage 
and backup environments for virtualization.
http://www.accelacomm.com/jaw/sfnl/114/51434361/
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to