• VPS hosting multiple websites?
    8 replies, posted
Hello, I have a VPS with CentOS running Zpanel. My question is, how can I run 2 different websites with 2 different domains on a single VPS with 1 IP? I know it's possible; I've read about it but don't quite understand it. Could someone experienced please help me out? Thanks a million! [HR][/HR][B]EDIT: I FIXED THE ISSUE I WENT WITH A PANEL CALLED KLOXO. EVERYTHING WORKS NOW THANKS! [/B]
If you have management I would recommend asking your VPS provider. Otherwise, you may want to contact Zpanel support since most people here haven't used the panel.
Do you have SSH access? Ideally you'd just edit your vhosts file and point the domain to the server. I have no idea how you'd do this within the panel, though.
[QUOTE=jetboy;43097682]Do you have SSH access? Ideally you'd just edit your vhosts file and point the domain to the server. I have no idea how you'd do this within the panel, though.[/QUOTE] Say I wasn't using the panel directly to do this, (apache and other already installed), wouldn't I have to create nameservers and all that jazz?
[QUOTE=mntwins7;43098229]Say I wasn't using the panel directly to do this, (apache and other already installed), wouldn't I have to create nameservers and all that jazz?[/QUOTE] No, you just point your domain at the server's IP and then tell apache/nginx which files to serve for which domain. It's way more simple than I thought it would be when I first did it as well.
As you're using zpanel this should be quite straight forward, zpanel just requires you add the domain through its interface and it will configure your vhosts using your VPS IP. Alternatively you can remove zpanel and setup apache/nginx on centOS - eg. [url]https://www.digitalocean.com/community/articles/how-to-set-up-apache-virtual-hosts-on-centos-6[/url] hope it helps.
Don't use zpanel - it's a security and performance nightmare Look up virtualhosts for apache/nginx (whichever you use)
*****FORGET THE THREAD - FIXED EVERYTHING - DIDNT USE ZPANEL*****
Sorry, you need to Log In to post a reply to this thread.