@Hung,
Thanks, corrected in the article…
]]>Server_tokens off; --> server_tokens off;
The [S]erver
must be lower case [s]erver
.
Thanks for your post, highly appreciated. Have an issue when running nginx -t
to validate the configuration and send me the next error message:
nginx: [emerg] "map" directive is not allowed here in /etc/nginx/blockuseragents.rules:1 nginx: configuration file /etc/nginx/nginx.conf test failed
Any recommendations to jump this hurdle?
Best Regards
]]>is it Nginx default config, right?
If not, where it’s place to add?
]]>RewriteEngine On
RewriteRule ^([^\.]+)/([^\.]+)/?$ index.php?route=$1&sub=$2 [QSA,NC,L]
RewriteRule ^([^\.]+)/?$ index.php?route=$1 [QSA,NC,L]