:: NGINX : Redirect to external URL
:: How to redirect to external url on NGINX
+ create configure file
|
0 |
vi /etc/nginx/vhosts/blackonsole.org.conf |
added configuration like these:
|
0 1 2 3 4 5 6 7 |
server { listen 80; server_name blackonsole.org www.blackonsole.org; location / { rewrite ^ http://anotherurl.tld/path; } } |
+ testing configure file and reload nginx
|
0 1 |
nginx -t nginx -s reload |
Categories: Tutorials