Post4VPS Forum | Free VPS Provider
Point IP to Show Specific Domain with Cyberpanel - Printable Version

+- Post4VPS Forum | Free VPS Provider (https://post4vps.com)
+-- Forum: VPS Discussion (https://post4vps.com/Forum-VPS-Discussion)
+--- Forum: VPS Support (https://post4vps.com/Forum-VPS-Support)
+--- Thread: Point IP to Show Specific Domain with Cyberpanel (/Thread-Point-IP-to-Show-Specific-Domain-with-Cyberpanel)



Point IP to Show Specific Domain with Cyberpanel - tiwil - 07-12-2019

Hello all,

I just installed Cyberpanel with my new VPS 13 Singapore location. Everything works very well, but I notice one problem. My IP shows 404 Not Found. This issue didn't appear while I use VestaCP as my panel. I don't know how to configure my IP to show my domain name.

I wanted to put my IP to show my website as if a visitor opens 1.1.1.1, they will see Cloudflare's DNS website. So, I wanted to configure my IP to show my website. How can I do that with Cyberpanel? My Cyberpanel uses OpenLiteSpeed.

Thanks for your help!


RE: Point IP to Show Specific Domain with Cyberpanel - Manal - 07-12-2019

Someone else faced this problem too. Here is the solution they've pointed out.

Quote:speedy200man
November 2018
I have found a way to do it. The steps are:
1. Go to openlitespeed admin page (:7080), go to Virtual Hosts and add a new vhost.
2. Fill in these details:
Virtual Host Name: *
Virtual Host Root: /home/default (or any folder you want)
Config File: $SERVER_ROOT/conf/vhosts/defaultvh/vhconf.conf
Folow Symbolik Link, Enable Scripts, Restrained - all set to yes.
3. Add the vhost, then click the view button and go to General tab.
4. Click on the pencil icon to edit the first group, and set the following:
Document Root: /home/default (or the folder you defined on the previous step)
Domain Name: *
5. Click on save and then do a graceful restart using the icon on the top.
6. Go to Listeners, click on the view icon from the Default, port 80 line.
7. On Virtual Host Mappings, add a new one, choosing * as virtual host type * on Domains.
8. Do a graceful restart of LSWS.
9. Place the files (html, images, etc.) in the Document Root defined earlier.
10. Enjoy!

ps: if you still get a 404 error page, run this command:
chown -R nobody:nobody /home/default

Credits:- https://forums.cyberpanel.net/discussion/925/default-server-webpage-points-to-404-page


RE: Point IP to Show Specific Domain with Cyberpanel - tiwil - 07-12-2019

(07-12-2019, 01:13 PM)Manal Wrote: Someone else faced this problem too. Here is the solution they've pointed out.


Credits:- https://forums.cyberpanel.net/discussion/925/default-server-webpage-points-to-404-page

I have no idea, already followed the trick, didn't work. Still it's 404 error not found when I open the IP.

Already did about 2-3 times actually, haha.


RE: Point IP to Show Specific Domain with Cyberpanel - Manal - 07-12-2019

(07-12-2019, 02:02 PM)tiwil Wrote: I have no idea, already followed the trick, didn't work. Still it's 404 error not found when I open the IP.

Already did about 2-3 times actually, haha.

Did you try to reboot? (Sorry, a noob reply but that's what I forget mostly after applying the solution).


RE: Point IP to Show Specific Domain with Cyberpanel - deanhills - 07-12-2019

@tiwil  Did you ask Cyberpanel about the problem?  Like I think your solution should be there.  

Does Cyberpanel have a discussion forum?  I found this discussion so far.  I'm sure you'll find more:
https://forums.cyberpanel.net/discussion/1042/dns-problem
https://forums.cyberpanel.net/discussion/257/super-simple-nameserver-creation


RE: Point IP to Show Specific Domain with Cyberpanel - tiwil - 07-12-2019

(07-12-2019, 02:29 PM)Manal Wrote: Did you try to reboot? (Sorry, a noob reply but that's what I forget mostly after applying the solution).

Oh.. Wow. You did it! Thanks for the quick "noob" solution! Hahaha.

I rebooted it when you ask me to reboot, now it works! Completely works! Thanks for the idea.
(07-12-2019, 02:32 PM)deanhills Wrote: @tiwil  Did you ask Cyberpanel about the problem?  Like I think your solution should be there.  

Does Cyberpanel have a discussion forum?  I found this discussion so far.  I'm sure you'll find more:
https://forums.cyberpanel.net/discussion/1042/dns-problem
https://forums.cyberpanel.net/discussion/257/super-simple-nameserver-creation

I did ask Google to ask Cyberpanel how they solve this problem, no result. My keyword seems doesn't too accurate when I search on Google. Manal found the solution! Thanks to @Manal.

Anyway, no offense, that's not what I actually mean, Dean. I mean, if you use VestaCP, and you open your IP address in the browser (without port), you will see your website there, right? So, this problem is where I got one, Cyberpanel didn't do that automatically for me, and I never get a result on how to do that.

Anyway, as Manal already solve and give a solution, thanks again @Manal, this thread actually can be closed now.