You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by John Gordon <go...@panix.com> on 2010/07/07 18:15:25 UTC

[users@httpd] Problem with in Apache httpd 2.2

I've been assigned (yay!) to support a homebrew Apache module that is used
by some external customers.  One customer is reporting that the <IfModule>
tag is failing to recognize that the module is loaded.

He has these lines in the config:

  <IfModule spiffy_module>
    SpiffyVariable1 abc
    SpiffyVariable2 xyz
    SpiffyVariable3 123
  </IfModule>

The variables are not being set, and the module returns a 500 Server Error
because it needs those settings to do its work.

However if the <IfModule> tags are commented out like so:

  #<IfModule spiffy_module>
    SpiffyVariable1 abc
    SpiffyVariable2 xyz
    SpiffyVariable3 123
  #</IfModule>

The variables do get set and the module is happy.

Strangely, though, when he runs apachectl -M the module name DOES show up
in the list.

I think this could be an Apache version issue, as this is the only customer
running 2.2.  All of our other customers are running Apache 1.3, or 2.0
with legacy 1.3 compatibility, and the module was written for Apache 1.3.
Some work has been done to update it to 2.0, but I don't know how
comprehensive that work was.  I've been assigned to work on that too (yay!)

On a more general note, can anyone suggest some resources for converting
1.3 modules to 2.2?  I've found some documentation out on the web but it
does not appear to be very complete.

Thanks!

-- 
John Gordon                   A is for Amy, who fell down the stairs
gordon@panix.com              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Problem with in Apache httpd 2.2

Posted by John Gordon <go...@panix.com>.
John Gordon writes:
> 
> I've been assigned (yay!) to support a homebrew Apache module that is used
> by some external customers.  One customer is reporting that the <IfModule>
> tag is failing to recognize that the module is loaded.

Turned out to be user error -- the customer had the <IfModule> statement
before the LoadModule statement in the config, so of course the <IfModule>
didn't recognize the module as being present.

-- 
John Gordon                   A is for Amy, who fell down the stairs
gordon@panix.com              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org