Mapping to change URL

tony tabone tony_tabone at hotmail.com
Thu Oct 28 08:22:53 UTC 2021


I am trying to add a mapping to change the url being shown with every location. Do you know if this is possible since an error is being encountered on the mapping.

    map $geoip2_data_country_code $leovegas_com_index_file $request_uri $new {
      default /index-en.html default 0;
      MT /en-desktop.html ~^/tony/ maintenance.tony;
    }

nginx: [emerg] invalid number of arguments in "map" directive in /etc/nginx/nginx.conf:91

Thanks & Regards,
Tony
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20211028/29907c84/attachment.htm>


More information about the nginx mailing list