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 a web without the domain (temp dir)

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
benjamin_rbnt
Posts: 1
Joined: Thu Feb 18, 2016 12:32 am

Access a web without the domain (temp dir)
  • Quote

Post by benjamin_rbnt » Thu Feb 18, 2016 12:36 am

Hello,

I would like to know if it is possible to do something to be able to access a website while (for exemple) the DNS propagation is not done yet.

For exemple I have my domain "domain.tld".
I want to check if everything is ok on my hosted website but I can't because my domain is not ready yet.
So I would like to be able to check by: http://{HOST_IP/HOSTNAME}/~domain.tld/ or something like.

If someone know how to do that, by nginx conf or whatever, it could be nice to help me!
Thank you!
Top

pandabb
Posts: 192
Joined: Sat Aug 08, 2015 3:03 am

Re: Access a web without the domain (temp dir)
  • Quote

Post by pandabb » Thu Feb 18, 2016 9:09 am

Maybe this can help you.


How to configure temporary links for new domains

If you are running hosting company most likely you would want to provide your customers temporary link to access their site before actuall domain propagation. This is especially useful when customer is moving site from another host and want to check if everything works as expected.

For instance, you have 2 IP addresses on a server, 192.168.3.57 and 192.168.3.58. Let's say your site is tophost.ltd. Then you need to set up 2 wildcards for each ip address. Go to the DNS menu. Click on a "add record" under the tophost.ltd domain and enter following
Record: *.alpha
Type: A
IP: 192.168.3.57

Press Add button and add second record
Record: *.beta
Type: A
IP: 192.168.3.58

The DNS part is complete. Let's assign those domains to corresponding ip addresses. Go to the IP menu. Select 192.168.3.57. Click on edit button opposite and add alpha.tophost.ltd in the "Assigned Domain" text field. Save and repeat accordingly for the 192.168.3.58 address and beta.tophost.ltd domain.

Now when your user add new domain it will automatically get tophost alias. If he added bbc.com on a 192.168.3.57 then he will be able to see his domain by opening http://bbc-com.alpha.tophost.ltd As you can see dots in original domain has been replaced with dashes.
Top


Post Reply
  • Print view

2 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