apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sive Lindmark <s...@capestream.se>
Subject Problem with proxy: CONNECT: declining URL
Date Tue, 16 Aug 2005 18:42:30 GMT
Hi!

Trying to set up a front end mod_proxy server and a backend mod_perl 
server for the first time, but get a proxy: CONNECT: declining URL 
http://localhost:8080/dees/ problem.
Is this problem  coming from my setup, mod_proxy or apr.

Glad for some help!
Greetings

Sive


Codebase:   Mac OS X 7W98   httpd-2.1.6-alpha  
apr_20050809223037.tar.gz  apr-util-1.1.2.tar.bz2   
modperl-2.0_20050809223236.tar.gz

           Configuration of the frontend proxy server,	httpd.proxy.conf:
Listen 8085
ServerRoot /Library/Apache2
DocumentRoot /Library/Apache2/Projects/Dees/DOCUMENTS
User  www
Group www
ServerName hortlax.dcode.com
ScriptAlias /cgi-bin/ "/Library/Apache2/Projects/Dees/CODE/"

<IfModule prefork.c>
StartServers         5
MinSpareServers      5
MaxSpareServers      10
MaxClients           10
MaxRequestsPerChild  100
</IfModule>

ErrorLog logs/error_proxy_log
LogLevel debug

<Directory />
     Options FollowSymLinks
     AllowOverride None
</Directory>

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so

ProxyPass /dees/ http://localhost:8080/dees/


		Configuration of the backend modPerl server, httpd.proxy.conf:
Listen 8080
ServerRoot /Library/Apache2
DocumentRoot /Library/Apache2/Projects/Dees/DOCUMENTS
User  www
Group www
ServerName hortlax.dcode.com
ScriptAlias /cgi-bin/ "/Library/Apache2/Projects/Dees/CODE/"

<IfModule worker.c>
  StartServers         1
  MaxClients           1
  MinSpareThreads      1
  MaxSpareThreads      1
  ThreadsPerChild      1
  MaxRequestsPerChild  1
</IfModule>

ErrorLog logs/error_log
LogLevel debug

<Directory />
     Options FollowSymLinks
     AllowOverride None
</Directory>

LoadModule perl_module modules/mod_perl.so
PerlRequire "/Library/Apache2/perl/startup.pl"
         PerlModule            dc
         PerlOpenLogsHandler   dc::open_logs
         PerlPostConfigHandler dc::post_config
         PerlChildInitHandler  dc::child_init
         PerlChildExitHandler  dc::child_exit

<Location /dees/>
         SetHandler perl-script
         AuthName DBI
         AuthType Basic
         PerlAuthenHandler Apache::AuthDBI::authen
         PerlAuthzHandler  Apache::AuthDBI::authz
         PerlSetVar Auth_DBI_data_source   dbi:mysql:localhost
         PerlSetVar Auth_DBI_username      xxxx
         PerlSetVar Auth_DBI_password      yyyy
         PerlResponseHandler dc
</Location>

Starting both servers
100:/Library/Apache2/conf root# /Library/Apache2/bin/apachectl -k 
restart
100:/Library/Apache2/conf root# /Library/Apache2/bin/apachectl -k 
restart -f /Library/Apache2/conf/httpd-proxy.conf
100:/Library/Apache2/conf root# tail -f 
/Library/Apache2/logs/error_proxy_log
[Mon Aug 15 23:54:15 2005] [notice] SIGHUP received.  Attempting to 
restart
[Mon Aug 15 23:54:15 2005] [notice] Apache/2.1.6 (Unix) configured -- 
resuming normal operations
[Mon Aug 15 23:54:15 2005] [info] Server built: Aug 11 2005 20:49:23
[Mon Aug 15 23:54:15 2005] [debug] prefork.c(977): AcceptMutex: sysvsem 
(default: sysvsem)
[Mon Aug 15 23:54:15 2005] [debug] proxy_util.c(1618): proxy: 
initialized single connection worker 0 in child 20458 for (localhost)
[Mon Aug 15 23:54:15 2005] [debug] proxy_util.c(1618): proxy: 
initialized single connection worker 1 in child 20458 for (*)

 From browser
http://hortlax.dcode.com:8085/dees/?db=dby110&name=fred
resulting in following problem

[Mon Aug 15 23:55:08 2005] [debug] proxy_util.c(1334): [client 
195.x.x.2] proxy: *: found reverse proxy worker for 
http://localhost:8080/dees/
[Mon Aug 15 23:55:08 2005] [debug] mod_proxy.c(648): Running scheme 
http handler (attempt 0)
[Mon Aug 15 23:55:08 2005] [debug] mod_proxy_connect.c(100): proxy: 
CONNECT: declining URL http://localhost:8080/dees/
[Mon Aug 15 23:55:08 2005] [warn] proxy: No protocol handler was valid 
for the URL /dees/. If you are using a DSO version of mod_proxy, make 
sure the proxy submodules are included in the configuration using 
LoadModule.

In  mod_proxy_connect.c I found this code:

     if (r->method_number != M_CONNECT) {
     return DECLINED;
     }


Mime
View raw message