Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Problem with redirect

$
0
0
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

Viewing all articles
Browse latest Browse all 4759

Trending Articles