Je voudrais savoir comment traduire les directives Apache "RewriteMap" en NGINX.
Je n'ai rien trouvé dans la documentation en ligne de NGINX
Mon code apache actuel est:
RewriteMap map-one txt:C:/map-one.txt
RewriteMap map-two txt:C:/map-two.txt
<Directory />
Options All
AllowOverride All
RewriteEngine On
RewriteRule /MYSITE/PRODUCT/([A-Za-z0-9-]+)/([A-Za-z0-9-]+),([0-9]+).aspx /$1/$2/${map-two:$3}/${map-one:$3} [R=301,L]
</Directory>
Une idée ?
Réponses:
4 pour la réponse № 1Vérifier Module de cartographie HTTP Nginx
map $uri $new {
default http://www.domain.com/home/;
/aa http://aa.domain.com/;
/bb http://bb.domain.com/;
/john http://my.domain.com/users/john/;
}