Add to Favourites Add to Favourites    Print this Article Print this Article

Can I use HTTP authentication with Apache CGI ?

Yes. However you need to pass authentication variable to CGI using following rewrite rule:


RewriteEngine On
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization},L]

Was this answer helpful?

Also Read