Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

SSL IP to Domain - Problem

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
alex809
Posts: 6
Joined: Sun Feb 08, 2015 11:06 pm

SSL IP to Domain - Problem
  • Quote

Post by alex809 » 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):

Code: Select all

server {
    listen       ***.**.**.***:80 default;
    server_name  server1.mydomain.net;
    #access_log  /var/log/nginx/***.**.**.***.log main;
    location / {
        proxy_pass  http://***.**.**.***:8080;
   }
}
Thanks! :)
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: SSL IP to Domain - Problem
  • Quote

Post by skurudo » Thu Feb 19, 2015 4:34 pm

https://www.server1.mydomain.net:80
why you use port? you already have https == 443 port in url
Top

alex809
Posts: 6
Joined: Sun Feb 08, 2015 11:06 pm

Re: SSL IP to Domain - Problem
  • Quote

Post by alex809 » Fri Feb 20, 2015 3:36 pm

skurudo wrote:https://www.server1.mydomain.net:80
why you use port? you already have https == 443 port in url
I don't have a choice. If i set the server_name it does that automatically...
VestaCP login works off of port 8083 and then the server automatically adds www. in the url which doesn't work.

I need to know how to remove the www. from being added and make it load 8083 instead of 80 at the end so it actually provides the VestaCP login..

I haven't touched VestaCP in terms of this other than what i specified so it's default with Vesta.

EDIT:
and now if i set the server_name and try to visit the IP it doesn't redirect either.
Top


Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password