I'm running Apache 2.2.3-31 on RHEL 5.4 and am running into an issue with using an <IfModule> block inside of a VirtualHost stanza. If my VirtualHosts are defined in my main config file (/etc/httpd/conf/httpd.conf) the IfModule test works fine. However, I prefer to store VirtualHost configuration in /etc/httpd/conf.d/vhosts.conf - by simply moving the config from the main file to the vhosts.conf file the behavior of the IfModule changes.
Specifically I'm trying to test the presence of the jrun_module, like so: LoadModule jrun_module /opt/jrun4/lib/wsconfig/1/mod_jrun22.so <VirtualHost> : <IfModule mod_jrun22.c> # JRun Settings JRunConfig Verbose false JRunConfig Apialloc false JRunConfig Serverstore /opt/jrun4/lib/wsconfig/2/jrunserver.store JRunConfig Bootstrap 127.0.0.1:51000 </IfModule> </VirtualHost> When the VirtualHost definition above appears in the main config file the IfModule test returns true. If I leave the LoadModule in the main config and move the VirtualHost definition to /etc/httpd/conf.d/vhosts.conf the IfModule test fails for some reason. Testing a different module such as mod_alias succeeds as expected. Any ideas? Thanks, Seth --------------------------------------------------------------------- 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-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org