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

Re: htaccess



salut,

j'essaie d'implémenter un .htaccess sur un virtualhost depuis un serveur
sous lighttpd
tiens, je croyais que lighttpd ne connaissait pas htacess.

ah ok, tu veux faire un htacess-like avec lighttpd.conf ;)

Il me semble que si tu créés des virtualhost (un pour ta racine et un pour ton répertoire admin), tu pourras ensuite utiliser la syntaxe classique lighttpd.conf

a+

f.


la syntaxe fonctionne pour un host avec nom de domaine
mais échoue pour un sous-domaine

fonctionne avec
$HTTP["host"] =~ "www.linux-pour-lesnuls.com/


ne fonctionne pas avec
$HTTP["host"] =~ "www.linux-pour-lesnuls.com/blog



voici ma syntaxe qui ne fonctionne pas :

$HTTP["host"] =~ "www.linux-pour-lesnuls.com/blog" {
server.document-root = "/home/deny/aide/blog"
server.error-handler-404 = "/e404.php"

expire.url = ( "/wp-content/" => "access plus 1 hours",
)

auth.backend = "htpasswd"
auth.backend.htpasswd.userfile = "/home/deny/.htpasswd"
auth.require = ( "/wp-admin/" =>
(
"method" => "basic",
"realm" => "Access to admin interface",
"require" => "valid-user"
))
}



merci pour votre aide



Reply to: