开发者

Use a non-perl daemon as an HTTP::Daemon Object in perl

开发者 https://www.devze.com 2023-02-04 19:38 出处:网络
I have an apache web server running an HTTP daemon on port 80. This web ser开发者_开发技巧ver won\'t let me start any other http daemons. Is there a way I can link the already-running apache http daem

I have an apache web server running an HTTP daemon on port 80. This web ser开发者_开发技巧ver won't let me start any other http daemons. Is there a way I can link the already-running apache http daemon as an HTTP::Daemon object in perl?


Not really, although you could run it on another port and then configure Apache to proxy the request to the other server.

I'd write a PSGI or (if you want to do voodoo) mod_perl application instead.


Binding to a port is exclusive. When the Apache httpd already occupies port 80, simply tell HTTP::Daemon to bind to a different port with the argument LocalPort in the constructor.

Without root privileges, you may use numbers above 1024, preferably between 49152 and 65535.

0

精彩评论

暂无评论...
验证码 换一张
取 消