[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

.htaccess med apache-ssl?



Jag lyckas inte få htaccess att fungera med apache-ssl men med "vanliga"
apache så funkar det utmärkt.

Så här ser min .htaccess fil ut:

AuthUserFile /var/www/.htpasswd
AuthGroupFile /dev/null
AuthName "bilder"
AuthType Basic

<Limit GET POST>
require user bilder
</Limit>

och .htpasswd ser ut:

www-bilder:Rdy3/uUqfh8UA


Om det är till någon nytta så har jag följande rewrite rutin i
httpd.conf för vanliga apache för att flytta en till apache-ssl

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %(SERVER_PORT) !^443$
RewriteRule ^/(.*) https://host/$1 [R,L]
</IfModule>


Tack tacksamt emot alla rekommendationer och tips hur jag kan få htacess
att funka under apache-ssl =)



Reply to: