|
The first is that ScriptAliasMatch isn't needed to enable CGI and will drag down server performance on a busy site since it uses regular expressions.
However, on my box, the speed difference isn't noticable.
The second is that doing basic authentication inside of Directory containers is guaranteed to cause grief[SNIP]
it just doesn't work well when the physical path to a resource is virtualized by it's run time (like with Net.Data or Java apps).
It's much better to use Location containers to do basic authentication since they operate off of the actual URI of the request and not the physical location of the resource.
So, to fix this problem, I should configure Apache as follows, correct?
ScriptAlias /cgi-bin /QSYS.LIB/LIBCGI.LIB
<Directory /QSYS.LIB/LIBCGI.LIB> Order Allow,Deny Allow From all </Directory>
<Location /cgi-bin> Require valid-user PasswdFile %%SYSTEM%% AuthType Basic AuthName "AS/400 Sign On" ProfileToken on </Location>
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.