I'm using CENTOS 7 and latest CENTMINMOD now.
Have you checked out these guides ? Module ngx_http_rewrite_module Converting rewrite rules How to Create NGINX Rewrite Rules | NGINX Convert Apache Rewrite Rules to NGINX Rewrite Rules | NGINX How To Create Temporary and Permanent Redirects with Nginx | DigitalOcean
There are so much to read! Code (Text): server { listen 80; server_name myplace.com www.myplace.com; return 301 https://$server_name$request_uri; } server { listen 443 ssl http2 reuseport; server_name myplace.com www.myplace.com; rewrite ^/$ /forums redirect; I added the last line... rewrite ^/$ /forums redirect; And it works. Is the the best way to do it? Thanks.
Check this "How To Force Redirect" part of CentminMod: Nginx Vhost & NSD DNS Setup - CentminMod.com LEMP Nginx web stack for CentOS