You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Kees Vonk 7249 24549 <KE...@BGTRANSCO.CO.UK> on 2000/04/25 09:57:23 UTC

mod_proxy problem

I have the following directives in my httpd.conf:

...

<VirtualHost _default_:8082>
   DocumentRoot "/app/env_control/httpd/DocumentRoot"

   <Location "/Test">
      # disable mason for this location
      SetHandler default-handler
   </Location>
   ProxyPass        /Test/ http://myhost:8084/Test/
   ProxyPassReverse /Test/ http://myhost:8084/Test/

...

</VirtualHost>


When I try to access location /Test/, I get the following 
error:

[Tue Apr 25 08:59:34 2000] [error] [client <ip address>] File 
does not exist: 
proxy:http://myhost:8084/Test/CheckDeployment/GetUKLs



Can anybody give me some insight as to what I am doing wrong? 
I am new to mod_proxy and I don't even know where to start 
looking.


Kees Vonk

Re: mod_proxy problem

Posted by Kees Vonk 7249 24549 <KE...@BGTRANSCO.CO.UK>.
> | <VirtualHost _default_:8082>
> |    DocumentRoot "/app/env_control/httpd/DocumentRoot"
> |    <Location "/Test">
> |       # disable mason for this location
> |       SetHandler default-handler
> |    </Location>
> |    ProxyPass        /Test/ http://myhost:8084/Test/
> |    ProxyPassReverse /Test/ http://myhost:8084/Test/
> | </VirtualHost>>
> |
> | When I try to access location /Test/, I get the following
> | error:
> |
> | [Tue Apr 25 08:59:34 2000] [error] [client <ip address>] File
> | does not exist:
> | proxy:http://myhost:8084/Test/CheckDeployment/GetUKLs
> |
> | Can anybody give me some insight as to what I am doing wrong?
> | I am new to mod_proxy and I don't even know where to start
> | looking.
>
> Show us your <VirtualHost blablabla:8084> (the destination in this 
> proxy config), a "ls -l" of
> /app/env_control/httpd/DocumentRoot/Test/CheckDeployment and a "host
> myhost".
> 
> Ime
I am running on HP-UX 10.20, there does not seem to be 'host' 
command.

myhost:8084 is my development server (runs on the same box), 
here is a copy of the httpd.conf (myhost:8082 is SSL enabled, 
8084 is not, I don't know if that makes a difference). Also 
attached the requested ls -l.

------------------------------------------------

ServerType standalone


ServerRoot "/opt/perl5/apache"

PidFile /var/iefadmn/apache/8084/logs/httpd.pid
ScoreBoardFile /var/iefadmn/apache/8084/logs/httpd.scoreboard

Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15

MinSpareServers 3
MaxSpareServers 5

StartServers 3

MaxClients 8

MaxRequestsPerChild 10

ClearModuleList
AddModule mod_env.c
AddModule mod_log_config.c
AddModule mod_mime.c
AddModule mod_alias.c
AddModule mod_access.c
AddModule mod_auth.c
AddModule mod_so.c
AddModule mod_setenvif.c
AddModule mod_perl.c


Port 8084

User  intranet
Group users

ServerName myhost


<Directory />
    AllowOverride None

PerlInitHandler Apache::StatINC

    Order allow,deny
    Deny from all
</Directory>


PerlSetVar ServerAlias myhost
PerlAccessHandler Intranet::Alias


UseCanonicalName On

HostnameLookups Off

ServerSignature On

TypesConfig /opt/perl5/apache/conf/8084/mime.types

LogFormat "%h %l %u %t \"%r\" %>s %b" common

ErrorLog /var/iefadmn/apache/8084/logs/error_log
LogLevel warn

CustomLog /var/iefadmn/apache/8084/logs/access_log common

SetEnv RC_FILE /app/env_control/repdata/iefit.rc

PassEnv     ORACLE_HOME
PerlPassEnv ORACLE_HOME

PerlRequire /opt/perl5/apache/conf/8084/startup.pl

DocumentRoot "/app/env_control/httpd/DocumentRoot"

<Directory "/app/env_control/httpd">
   Options FollowSymLinks
   AllowOverride None

   Order allow,deny
   Allow from all

   AuthType Basic
   AuthName "Environment Support and Projects (testing)"

   PerlAuthenHandler RCM::Authenticate
   PerlAuthzHandler  RCM::Authorise

   AuthAuthoritative on

   require role TEST01 TSTAU1
</Directory>

Alias /icons/   "/var/iefadmn/apache/icons/"
Alias /images/  "/var/iefadmn/apache/images/"

<Directory /var/iefadmn/apache/icons>
    Order allow,deny
    Allow from all
</Directory>
<Directory /var/iefadmn/apache/images>
    Order allow,deny
    Allow from all
</Directory>

PerlRequire /opt/perl5/apache/conf/8084/handler.pl
DefaultType text/html
<Location />
   SetHandler perl-script
   PerlHandler HTML::Mason
</Location>

<LocationMatch mod_ssl:[^:]+:>
   SetHandler perl-script
   PerlHandler Intranet::mod_ssl_error
</LocationMatch>

Alias /Images /app/env_control/httpd/Components/Images

<Location /Images>
   Order allow,deny
   Allow from all

   SetHandler perl-script
   PerlHandler HTML::Mason
</Location>

AddEncoding x-compress Z
AddEncoding x-gzip gz

BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 
force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0

Alias /Errors /app/env_control/httpd/Errors

<Location /Errors>
   Order allow,deny
   Allow from all

   SetHandler perl-script
   PerlHandler HTML::Mason
</Location>

ErrorDocument 403 /Errors/NotAuthorised
ErrorDocument 404 /Errors/NotFound


-------------------------------------------


ls -l /app/env_control/httpd/DocumentRoot/Test/CheckDeployment
total 8
-rw-r--r--   1 iefit      dba           3176 Apr 12 13:28 GetUKLs


Re: mod_proxy problem

Posted by Ime Smits <im...@iae.nl>.
| <VirtualHost _default_:8082>
|    DocumentRoot "/app/env_control/httpd/DocumentRoot"
|    <Location "/Test">
|       # disable mason for this location
|       SetHandler default-handler
|    </Location>
|    ProxyPass        /Test/ http://myhost:8084/Test/
|    ProxyPassReverse /Test/ http://myhost:8084/Test/
| </VirtualHost>
|
| When I try to access location /Test/, I get the following
| error:
|
| [Tue Apr 25 08:59:34 2000] [error] [client <ip address>] File
| does not exist:
| proxy:http://myhost:8084/Test/CheckDeployment/GetUKLs
|
| Can anybody give me some insight as to what I am doing wrong?
| I am new to mod_proxy and I don't even know where to start
| looking.

Show us your <VirtualHost blablabla:8084> (the destination in this proxy
config), a "ls -l" of
/app/env_control/httpd/DocumentRoot/Test/CheckDeployment and a "host
myhost".

Ime