
0
COMPLETADO
Add support for redirects in NGINX using multiple server blocks
The idea behind this is to redirect a user to the proper URL that you want them to use IE
server {
listen 192.168.11.1:80;
listen [ipv6 address]:80 ipv6only=off;
server_name www.example.com example.com *.example.net *.example.org *.oldexample.com;
return 301 $scheme://subdomain.example.com.com$request_uri;
}
We used one of these to redirect traffic from our old URLs to our new URLs but this is not an option in Ajenti, so we have to use an if statement in the advanced section, and if is evil.
server {
listen 192.168.11.1:80;
listen [ipv6 address]:80 ipv6only=off;
server_name www.example.com example.com *.example.net *.example.org *.oldexample.com;
return 301 $scheme://subdomain.example.com.com$request_uri;
}
We used one of these to redirect traffic from our old URLs to our new URLs but this is not an option in Ajenti, so we have to use an if statement in the advanced section, and if is evil.
Respuesta

0
Respuesta
COMPLETADO
Eugene Pankov (Project coordinator) hace 9 años
Done, update released. The field is Website > ... > Advanced > Custom top-level configuration. Its content gets inserted before the website's server{} block.

Respuesta
COMPLETADO
Done, update released. The field is Website > ... > Advanced > Custom top-level configuration. Its content gets inserted before the website's server{} block.
Servicio de atención al cliente por UserEcho