Hi, i need to make a redirect with nginx, this my file:
server {
listen 8080;
server_name test.domain.com;
index index.php index.html;
location / {
return 301 $scheme://test.domain.com/dashboard;
}
location /dashboard {
alias /path/to/my/dir;
index index.php index.html;
}
}
The problem is this, when i go to test.domain.com, the browser redirect to http://test.domain.com:8080/dashboard, it's possible to remove the "8080"?
Thanks
server {
listen 8080;
server_name test.domain.com;
index index.php index.html;
location / {
return 301 $scheme://test.domain.com/dashboard;
}
location /dashboard {
alias /path/to/my/dir;
index index.php index.html;
}
}
The problem is this, when i go to test.domain.com, the browser redirect to http://test.domain.com:8080/dashboard, it's possible to remove the "8080"?
Thanks