Seema Alevoor wrote:
> Jyri Virkki wrote:
>
>   
>> Please tell us more about the differences. Can you post diffs? 
>>     
>
> The difference is in the LoadModule directives
>
> e.g.,
>       LoadModule authn_file_module libexec/mod_authn_file.so        --> 32 bit
>       LoadModule authn_file_module libexec/amd64/mod_authn_file.so  --> 64 bit
>
>
>   
>> Are the differences limited to the httpd.conf file or do they extend
>> to any other *.conf files in conf.d?
>>     
>
> It is applicable to httpd.conf file. Other .conf files do not have 64 bit 
> specific
> location settings.
>
>   
>> As Sriram mentioned, separate .conf files are unfriendly, I'd rather
>> not maintain duplicate files. Can the difference be factored out?
>>     
>
> This can be done by passing a configuration parameter during server startup.
> e.g., apachectl can be modified to pass 64bit config parameter.
>       $HTTD -D64bit $ARGV
>
> And httpd.conf file can be modified to include the 64 bit specific directives 
> only
> when this parameter is defined.
> e.g.,
>
>       <IfDefine !64bit>               
>               LoadModule authn_file_module libexec/mod_authn_file.so
>               LoadModule authn_dbm_module libexec/mod_authn_dbm.so
>               LoadModule authn_anon_module libexec/mod_authn_anon.so
>       </IfDefine>
>       <IfDefine 64bit>
>               LoadModule authn_file_module libexec/amd64/mod_authn_file.so
>               LoadModule authn_dbm_module libexec/amd64/mod_authn_dbm.so
>               LoadModule authn_anon_module libexec/amd64/mod_authn_anon.so
>       </IfDefine>
>
>
>   
these 64-bit could be included in a 64-bit specific file placed under 
conf.d directory.
> This config parameter ( 64bit ) should be passed explicitly by the user if 
> 64-bit "httpd" is
> invoked directly (not through apachectl).
> e.g., %> /usr/apache2/2.2/bin/amd64/httpd -D64bit -k start
>
>   
well, bin/64/apachectl or through SMF could be the recommended / common 
way to start the server . these wrapper script can set this variable 
internally.

If we really want to go to the next level - we can define this variable 
hard coded when we build httpd 64-bit. - just thinking loudly here.

thanks
sriram

Reply via email to