Jump to content

ADVX, virtual hosting, and httpd-perl proxying


Guest mbc2
 Share

Recommended Posts

Running version Apache-AdvancedExtranetServer/1.3.26 (Mandrake Linux/6mdk)

sxnet/1.2.4 mod_ssl/2.8.10 OpenSSL/0.9.6g PHP/4.2.3 on a Mandrake 9.0 box.

 

I'm having problems setting up a virtual host on the box. The idea is to

have files in the /shtml directory processed by the mod_perl-enabled httpd

listening on port 8200 instead of the standard httpd (which is processing

static files). There, a custom Perl handler should be processing all files

ending in ".shtml". However, the handoff doesn't seem to be occurring and

the logs (access_log, error_log, perl-proxied_log) aren't recording any errors.

 

This is what I have (the following is in a .conf file that's included in

httpd.conf; should it be included in httpd-perl.conf as well?):

 

<VirtualHost {server IP}:80>

ServerName example.com

ServerAlias www.example.com

ServerPath /var/www/html

DocumentRoot /var/www/html

<IfDefine PERLPROXIED>

ProxyPass /shtml http://localhost:8200/shtml

ProxyPassReverse /shtml http://localhost:8200/shtml

</IfDefine>

</VirtualHost>

 

<VirtualHost {server IP}:8200>

ServerName example.com

ServerAlias www.example.com

ServerPath /var/www/html

DocumentRoot /var/www/html

 

<IfModule mod_perl.c>

PerlModule Perlsite

 

<FilesMatch "\.shtml$">

SetHandler perl-script

PerlHandler Perlsite

Options ExecCGI

order deny,allow

allow from all

</FilesMatch>

 

</IfModule>

</VirtualHost>

 

Other than the include for this file in httpd.conf, httpd.conf and

commonhttpd.conf are unchanged from the initial install.

 

Any advice you can give would be appreciated.

 

Thanks,

 

-Ken

Link to comment
Share on other sites

Just a follow-up.

 

If there's anyone out there willing to help us out in fixing this, you can email Bill at mbc2@shaw.ca A.S.A.P. Will pay.

 

Thanks,

 

-Ken

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...