problems with moving to apache2:

[prev] [thread] [next] [Date index for 2004/11/30]

From: Joshua Eric Turcotte
Subject: problems with moving to apache2:
Date: 21:37 on 30 Nov 2004
------=_NextPart_000_0114_01C4D6FA.DE8FA360
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Well, we have a fairly large apache-modperl site currently running fine =
on older versions... apache1.something, modperl 1.something
But we're faced with needing to migrate to apache2/modperl2 (or, 1.99 as =
it were).  It'll be a long road of fixes and updates, but right now I'm =
hitting a wall with the very conf of the site as it sits on our ap2.mp2 =
host. =20

Here is our entry in the main httpd.conf ... note, i 'blah'ed out the =
name just for good measure.

<VirtualHost *:80>
DocumentRoot /home/blah/www
<Directory "/home/blah/www">
        AllowOverride All
        Order allow,deny
        Allow from all
        Options All
        #Options +ExecCGI
</Directory>
ServerName blah.blah.com
ServerAlias blah.blah.org blah.blah.net
CustomLog /home/blah/logs/access_log common
ErrorLog /homeblah/logs/error_log
</VirtualHost>

Include /usr/local/apache/vhosts/blah/conf/perlvars.conf
<VirtualHost *>
    ServerName blah.blah.com
    ServerAlias blah.com blah.net blah.org blah.blah.org blah.blah.net

    ServerAdmin info@xxxx.xxx
    Include /usr/local/apache/vhosts/blah/conf/apache.conf
<Location /admin>
Options +Includes
XBitHack on
</Location>

RewriteEngine on
RewriteCond %{HTTP_HOST} ^blah.blah.org*
RewriteRule ^/(.*)         http://blah.blah.com/$1 [L,R]
UseCanonicalName off

    ServerAlias blah.com blah.net blah.org www.blah.org www.blah.net
ScriptAlias /cgi-bin/ /usr/local/apache/vhosts/blah/cgi-bin/
ErrorDocument 500 /cgi-bin/error.cgi
CustomLog /home/blah/logs/access_log combined
ErrorLog /home/blah/logs/error_log
</VirtualHost>

<Directory /usr/local/apache/vhosts/blah/blahdocs>
Options +Includes
XBitHack on
</Directory>

.....

apologies for the lengthiness... its been modified by a handful of =
people who are no longer around, and I'm not apache guru... my days are =
absorbed in the perl, but being the only one present right now, I have =
to deal with this.

The above references a number of files including our local conf which =
has dozens of entries like this:

    <Location /helpform>
        SetHandler perl-script
        PerlResponseHandler BLAH::HelpForm

        PerlAccessHandler BLAH::Auth
        PerlSetVar Authzone BLAH
        PerlSetVar BLAHlevel 1
    </Location>

... these would tie into an auth system to recognize user types we use =
routinely... nothing anyone need worry about. =20

The problem is, under apach2/modperl2, it acts as if it doesn't even see =
our inner configuration file...=20

All I get is:

Directory index forbidden by rule: /home/blah/www/

and any reference to /helpform or any of the other sections (each run by =
a modperl handler) results in the system remarking that it has no idea =
what I'm talking about.

Has anyone been through something similar?  Has there been a significant =
change in how this aspect of the server works? Any ideas or even =
references to documentations that may go over this?  I've been trolling =
for about 8 hours now on this without my brain wrapping around anything =
in particular.

~jet

------=_NextPart_000_0114_01C4D6FA.DE8FA360
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2523" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Well, we have a fairly large =
apache-modperl site=20
currently running fine on older versions... apache1.something, modperl=20
1.something</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>But we're faced with needing to migrate =
to=20
apache2/modperl2 (or, 1.99 as it were).&nbsp; It'll be a long road of =
fixes and=20
updates, but right now I'm hitting a wall with the very conf of the site =
as it=20
sits on our ap2.mp2 host.&nbsp; </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Here is our entry in the main =
httpd.conf ... note,=20
i 'blah'ed out the name just for good measure.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&lt;VirtualHost =
*:80&gt;<BR>DocumentRoot=20
/home/blah/www<BR>&lt;Directory=20
"/home/blah/www"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
AllowOverride=20
All<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Order=20
allow,deny<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Allow from=20
all<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Options=20
All<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #Options=20
+ExecCGI<BR>&lt;/Directory&gt;<BR>ServerName =
blah.blah.com<BR>ServerAlias=20
blah.blah.org blah.blah.net<BR>CustomLog /home/blah/logs/access_log=20
common<BR>ErrorLog =
/homeblah/logs/error_log<BR>&lt;/VirtualHost&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Include=20
/usr/local/apache/vhosts/blah/conf/perlvars.conf<BR>&lt;VirtualHost=20
*&gt;<BR>&nbsp;&nbsp;&nbsp; ServerName =
blah.blah.com<BR>&nbsp;&nbsp;&nbsp;=20
ServerAlias blah.com blah.net blah.org blah.blah.org =
blah.blah.net</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; ServerAdmin <A=20
href=3D"mailto:info@xxxxxxxxxx.xxx">info@<FONT=20
color=3D#000000>blah</FONT>.com</A><BR>&nbsp;&nbsp;&nbsp; Include=20
/usr/local/apache/vhosts/blah/conf/apache.conf<BR>&lt;Location=20
/admin&gt;<BR>Options +Includes<BR>XBitHack =
on<BR>&lt;/Location&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>RewriteEngine on<BR>RewriteCond =
%{HTTP_HOST}=20
^blah.blah.org*<BR>RewriteRule=20
^/(.*)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <A=20
href=3D"http://ultsys.numbersusa.com/$1">http://<FONT=20
color=3D#000000>blah</FONT>.<FONT color=3D#000000>blah</FONT>.com/$1</A> =

[L,R]<BR>UseCanonicalName off</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; ServerAlias blah.com =
blah.net=20
blah.org <A href=3D"http://www.numbersusa.org">www.<FONT=20
color=3D#000000>blah</FONT>.org</A> <A =
href=3D"http://www.numbersusa.net">www.<FONT=20
color=3D#000000>blah</FONT>.net</A><BR>ScriptAlias /cgi-bin/=20
/usr/local/apache/vhosts/blah/cgi-bin/<BR>ErrorDocument 500=20
/cgi-bin/error.cgi<BR>CustomLog /home/blah/logs/access_log =
combined<BR>ErrorLog=20
/home/blah/logs/error_log<BR>&lt;/VirtualHost&gt;<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&lt;Directory=20
/usr/local/apache/vhosts/blah/blahdocs&gt;<BR>Options =
+Includes<BR>XBitHack=20
on<BR>&lt;/Directory&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>.....</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>apologies for the lengthiness... its =
been modified=20
by a handful of people who are no longer around, and I'm not apache =
guru... my=20
days are absorbed in the perl, but being the only one present right now, =
I have=20
to deal with this.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The above references a number of files =
including=20
our local conf which has dozens of entries like this:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT><FONT face=3DArial =
size=3D2>&nbsp;&nbsp;&nbsp;=20
&lt;Location /helpform&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

SetHandler perl-script<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
PerlResponseHandler BLAH::HelpForm</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial =
size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
PerlAccessHandler =
BLAH::Auth<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
PerlSetVar =
Authzone&nbsp;BLAH<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
PerlSetVar&nbsp;BLAHlevel 1<BR>&nbsp;&nbsp;&nbsp; =
&lt;/Location&gt;<BR></DIV>
<DIV>... these would tie into an auth system to recognize user types we =
use=20
routinely... nothing anyone need worry about.&nbsp; </DIV>
<DIV>&nbsp;</DIV>
<DIV>The problem is, under apach2/modperl2, it acts as if it doesn't =
even see=20
our inner configuration file... <BR></DIV>
<DIV>All I get is:</DIV></FONT>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Directory index forbidden by rule:=20
/home/blah/www/</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>and any reference to /helpform or any =
of the other=20
sections (each run by a modperl handler) results in the system remarking =
that it=20
has no idea what I'm talking about.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Has anyone been through something =
similar?&nbsp;=20
Has there been a significant change in how this aspect of the server =
works? Any=20
ideas or even references to documentations that may go over this?&nbsp; =
I've=20
been trolling for about 8 hours now on this without my brain wrapping =
around=20
anything in particular.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>~jet</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0114_01C4D6FA.DE8FA360--

problems with moving to apache2:
Joshua Eric Turcotte 21:37 on 30 Nov 2004

Generated at 11:26 on 21 Dec 2004 by mariachi v0.52