I configured nginx for port forwarding (port 80 to 8889)
and pointed out my domain to server IP address.
after this it successfully redirects me to server. when i try to access url through the Domain address
But after it redirects i am only able to see ip only instead of my url (i.e. mydomain.com) in address bar (i.e. xx.xx.xx.xx:8889) what i require to do if i want to display domain in addressbar?
this is my nginx config file.
server {
listen 80;
server_name mywebsite.com 172.10.19.14;
server_name
proxy_connect_timeout 300;
proxy_send_timeout 300;
proxy_read_timeout 300;
send_timeout 300;
location / {
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://localhost:8888/;
}
client_max_body_size 10M;
error_page 404 /404.html;
location = /40x.html { } error_page 500 502 503 504 /50x.html;
location = /50x.html { }
}