SHAHNAWAZ OSMAN wrote:
Hi! I have been trying to configure two servers under Linux (CentOS-3.3) - one vanilla (frontend) & one mod_perl (backend) enabled server with a proxy setting in the front end. The frontend server is on port: 80 and the backend is on port 8000 and they are both in the same IP. The installation seems successful and the error log is as follows:
[Wed Nov 24 02:53:55 2004] [notice] Apache/1.3.33 (Unix) mod_perl/1.29 configured -- resuming normal operations
[Wed Nov 24 02:53:55 2004] [notice] Accept mutex: sysvsem (Default: sysvsem)
I can also verify that mod_perl is installed by typing 'httpd -l'. Anyway, the configuration became a real pain since all I can get is only "running under mod_cgi" - if I run the following script:
-----------------------------------------------------------------------------------------
#!/usr/bin/perl
print "Content-type: text/plain\n\n";
print "running under mod_" . ($ENV{MOD_PERL} ? "perl" : "cgi");
-----------------------------------------------------------------------------------------
I am really confused and can't figure out a solution so far. I tried to follow the guideline and reading a lot in the last few days but I don't seem to find a clue. I would really appreciate, if you guys can point out - what am I doing wrong here. Thank you in advance.
Here are my settings...
This is the frontend configuration setting...
[...]
ProxyPass /perl/ http://localhost:8000/cgi-bin/
ProxyPassReverse /perl/ http://localhost:8000/cgi-bin/
it should be:
ProxyPass /perl/ http://localhost:8000/perl/
ProxyPassReverse /perl/ http://localhost:8000/perl/
Here is the backend config file for mod_perl enabled server...
[...]
Alias /perl/ /home/user-name/public_html/cgi-bin/
<Location /perl>
--
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html