SaM5246
By:
SaM5246

How do I access zpanel on a subdomain?

July 2, 2013 11.2k views
I used this guide to install zpanel: https://www.digitalocean.com/community/articles/how-to-install-zpanel-on-centos-6 During installation I put zpanel.mydomain.com But the only way I can access zpanel is through www.mydomain.com Keep in mind the domain was purchased somewhere else. When I went into my account where I purchased the domain I set up a subdomain: zpanel.mysite.com Now how do I point this to make it work to access zpanel on my subdomain?
10 Answers
Creating the sub-domain w/the DNS registrar is only 1 step in the process. You also have to tell your web server what page to load when someone comes a'knocking via the sub-domain. You need to do that in either
/etc/nginx/sites-available

or
/etc/apache2/sites-available


Then--for Nginx--create a symbolic link in
/etc/nginx/sites-enabled

to zpanel.mysite.com by executing
sudo ln -s /etc/nginx/sites-available/zpanel.mysite.com /etc/nginx/sites-enabled/zpanel.mysite.com


For Apache, the command is:
sudo a2ensite zpanel.mysite.com

Hi I have same problem. My ZpanelCP use my domain alphaserver.cz but I want to use ZPanelCP on subdomain hosting.alphaserver.cz and on page alphaserver.cz i want to have my own blog. Please could you help me ?

Please don't duplicate your questions - I've answered your article comment.
Which web server are you using?
I gave the issue it's own question because it has not been asked before, i searched google

I have a set a subdomain pointing to my DO IP address
I have same question, I'm completely lost in setting up subdomain.
I'm not even sure did I do all ok.
I have domain registered at namecheap, I put there NS1,NS2,NS3, I put in digital ocean setup, just for A record, mydomain.com to point to ip.
For installation of zpanel I put zpanel.mydomain.com, but when I go to my ip it goes to zpanel ... I'm all lost and confused how to set it up, there is no clear instruction for non developers. Thanks.
I noticed when I retrieved password something wrong:
localhostzpanel.mysite.com
@kova.zag: What do you mean by
I noticed when I retrieved password something wrong: 

localhostzpanel.mysite.com


Can you please explain further?
For example how to redirect my VPS IP to a subdomain like: 123.12.12.12/zpanel?
@Miguel: Do you want to redirect http://123.12.12.12/ to http://123.12.12.12/zpanel?

/zpanel is a subdirectory, not a subdomain. Please create a separate question.
Have another answer? Share your knowledge.