SSL IP to Domain - Problem
Posted: Wed Feb 18, 2015 5:06 pm
Hey guys,
So here's my problem.
viewtopic.php?f=20&t=4336 (I tried the solution in this as well and it didn't work, Did the same thing as setting the server_name)
I set server_name to my domain and everything, I set the DNS record for server1.mydomain.net and server1.mydomain.net loads a unable to connect error, Which is understandable. (note, mydomain.net isn't my domain, mydomain is the filler)
However, I am trying to force it to load on my domain and i can't get it to work.
If i visit the IP of my server it redirects to https://www.server1.mydomain.net:80 except that doesn't work, It loads a server not found page. If i remove www. and i change 80 to 8083 then VestaCP Login is shown.
How do i make it so that if someone tries to open the server IP then it redirects to the proper url? ( https://server1.mydomain.net:8083)
My Nginx Conf (changed my domain and removed IP):
Thanks! :)
So here's my problem.
viewtopic.php?f=20&t=4336 (I tried the solution in this as well and it didn't work, Did the same thing as setting the server_name)
I set server_name to my domain and everything, I set the DNS record for server1.mydomain.net and server1.mydomain.net loads a unable to connect error, Which is understandable. (note, mydomain.net isn't my domain, mydomain is the filler)
However, I am trying to force it to load on my domain and i can't get it to work.
If i visit the IP of my server it redirects to https://www.server1.mydomain.net:80 except that doesn't work, It loads a server not found page. If i remove www. and i change 80 to 8083 then VestaCP Login is shown.
How do i make it so that if someone tries to open the server IP then it redirects to the proper url? ( https://server1.mydomain.net:8083)
My Nginx Conf (changed my domain and removed IP):
Code: Select all
server {
listen ***.**.**.***:80 default;
server_name server1.mydomain.net;
#access_log /var/log/nginx/***.**.**.***.log main;
location / {
proxy_pass http://***.**.**.***:8080;
}
}