
Let’s assume that we want to redirect all traffic coming from myweb.com to www.myweb.com.
First, we need to create our domain named myweb.com within Proxy Host:

Now, open it and go to the Advanced section:

And add the following within Custom Nginx Configuration:

The following configuration:
location / {
return 301 https://www.myweb.com$request_uri;
}
This way, it will perform a 301 redirection to www.myweb.com and also concatenate the rest of the path in the URL.
