Leo Izen
Leo Izen

Reputation: 4289

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

I have an apache web server running an HTTP daemon on port 80. This web server 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?

Upvotes: 1

Views: 182

Answers (2)

Quentin
Quentin

Reputation: 944443

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.

Upvotes: 1

daxim
daxim

Reputation: 39158

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.

Upvotes: 0

Related Questions