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

Access websites via IP Topic is solved

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
7 posts • Page 1 of 1
mdloring
Posts: 3
Joined: Sat Aug 01, 2015 10:25 pm

Access websites via IP
  • Quote

Post by mdloring » Sat Aug 01, 2015 10:37 pm

I'm in the process of moving all of my web sites to a new hosting platform (with Vesta), but need to test each of the sites before updating the domain DNS.

How can I access my web sites via IP? Going to my IP takes me to the default.domain, so how can I access any of my other sites?

I've tried multiple versions of "http://server-ip-address/~sitefolder" but I can't seem to figure out the correct URL.

Is this possible? I've also tried creating an alias for the domain in Vesta, but using the IP isn't a valid domain.
Top

abad
Posts: 36
Joined: Tue Jul 14, 2015 11:35 am

Re: Access websites via IP
  • Quote

Post by abad » Sat Aug 01, 2015 11:17 pm

I do it using hosts.

Code: Select all

serverip yourdomain
Then access website using your domain.
Top

mdloring
Posts: 3
Joined: Sat Aug 01, 2015 10:25 pm

Re: Access websites via IP
  • Quote

Post by mdloring » Sun Aug 02, 2015 4:10 am

The problem is I'm hosting multiple domains on my server.
I can access my "default" domain via IP, but I can't access any of the other ones.

example:
/home/admin/web/public_html -- points to my IP, but how would I access /home/mloring/web/public_html
Top

missionaryman
Posts: 50
Joined: Mon Oct 27, 2014 10:04 am

Re: Access websites via IP
  • Quote

Post by missionaryman » Sun Aug 02, 2015 7:42 am

Is this any good?

https://vestacp.com/docs/#how-to-config ... ew-domains
Top

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

Re: Access websites via IP
  • Quote

Post by skurudo » Sun Aug 02, 2015 8:28 pm

Another solution:
You can add one real domain and then use your virtal domain as many as you wish.

add realdomain.com
and other domains will be virtualdomain-com.realdomain.com
Top

lotnomore
Posts: 20
Joined: Sun Apr 28, 2019 7:00 pm
Contact:
Contact lotnomore
Website

Os: Debian 8x
Web: apache + nginx
Re: Access websites via IP
  • Quote

Post by lotnomore » Mon Apr 29, 2019 7:50 am

missionaryman wrote: ↑
Sun Aug 02, 2015 7:42 am
Is this any good?

https://vestacp.com/docs/#how-to-config ... ew-domains
This one works!

Thank you, missionaryman, so much !!!
Top

dsystem
Posts: 55
Joined: Sun Nov 30, 2014 12:27 am

Os: CentOS 6x
Web: nginx + php-fpm
Re: Sites Acessar via IP.
  • Quote

Post by dsystem » Tue Apr 30, 2019 12:40 pm

I have an easier way to test before publishing the new domain

I simply add the IP and domain to the hosts file of the local operating system.


Example:
-> In Windows 10
Add this line to C:\Windows\System32\drivers\etc\hosts
192.168.3.57 bbc.com

After adding this line and saving the file, simply access the site with your browser http://bbc.com

Reading on this subject -> https://tecnoblog.net/199539/editar-arq ... s-windows/
Top


Post Reply
  • Print view

7 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
 

 

cron

Login  •  Register

I forgot my password