You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Valerio <va...@gmail.com> on 2008/04/17 15:53:43 UTC

HTTP request using mod_perl - permission denied on localhost

Hi all,

I have a mod_perl script which works at PerlTransHandler level, and
translates the virtual host requested to the real system path where
site's pages are stored.
To do this translation, I tried two solutions:
- ask to a db
- ask to a php script on another apache which makes the traslation.

But the second solution doesn't work in every situation:
if the second apache is on the same system but different port, it
doesn't work and I find on the error_log

500 Can't connect to 192.168.2.110:8080 (connect: Permission denied)

(also if I use a different Ip, using an alias for the network interface)

Otherwise, if it is on another system, it works.

Does anyone know why it happens?
Is it a limitation of apache/mod_perl?

Thanks and regards

Valerio

Re: HTTP request using mod_perl - permission denied on localhost

Posted by Valerio <va...@gmail.com>.
Hi all,

I solved the problem:
it is not a problem of mod_perl, or perl, or linux... it is a problem
of Fedora and SELinux, which prevents a cgi to open a socket on the
same system...


Valerio

2008/4/17, Valerio <va...@gmail.com>:
> Hi all,
>
>  I have a mod_perl script which works at PerlTransHandler level, and
>  translates the virtual host requested to the real system path where
>  site's pages are stored.
>  To do this translation, I tried two solutions:
>  - ask to a db
>  - ask to a php script on another apache which makes the traslation.
>
>  But the second solution doesn't work in every situation:
>  if the second apache is on the same system but different port, it
>  doesn't work and I find on the error_log
>
>  500 Can't connect to 192.168.2.110:8080 (connect: Permission denied)
>
>  (also if I use a different Ip, using an alias for the network interface)
>
>  Otherwise, if it is on another system, it works.
>
>  Does anyone know why it happens?
>  Is it a limitation of apache/mod_perl?
>
>  Thanks and regards
>
>
>  Valerio
>