Webinoly is just the perfect tool for NGINX experts. Give it a try!
0 votes
861 views
by Talented
edited by

I want to redirect domain A to domain B.

I type the following command:

site domain-a.com -redirection -from=/ -to=https://domain-b.com/webmail -http-code=301

And I get an nginx error:

nginx: [emerg] duplicate location "/" in /etc/nginx/apps.d/domain-a.com-nginx.conf:3

Not sure what I'm doing wrong here, isn't this the right way to add a redirect?

1 Answer

+1 vote
by Expert
selected by
 
Best answer
First of all, thanks for reporting this issue, it will be fixed in the next release (v1.11.0). Redirecting from root path "/" is a special case and we need to treat it in a special way.

Also in v1.11.0 we will include a lot of improvements in the redirection manager, including a new feature to redirect a complete domain (domain forwarding). Any request to this domain will be redirected, not only "/".
by Talented
Awesome, sounds like a plan! Do you know when will v1.11.0 will be released? Thanks!
by Expert
Later in april.

You can always see the next scheduled release (tentative date) here: https://webinoly.com/support/849/please-read-before-posting
by Expert
This issue has been fixed in v1.11.0, released today.
Welcome to the Community site for Webinoly.

Our Optimized LEMP Web Server is a powerful set of commands for doing just about anything you could wish.

With Webinoly you can set up your NGINX web server in just one step.

* * * * * * *

To report a bug, please create a new issue on GitHub or ask a question here with the bug tag.
Webinoly Support Paypal Donations

PayPal · GitHub Sponsors · Bitcoin

It is very important that any visitor to the site read the disclaimer, terms of use and privacy and legal statement before start browsing.

...