Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


martyyn

1846 posts

Uber Geek

ID Verified
Subscriber

#225544 23-Nov-2017 14:57
Send private message

I've been playing with EE on Vultr in Sydney this week following guides by @michaelmurfy and @timmmay and I'm really liking the speed increase over my hosting in the US.

 

I would like to update and migrate a site before switching the DNS. I've edited my local hosts file to use the Vultr IP address rather than the DNS but as I have a couple of sites on the Vultr instance now it sends me to a different site.

 

Is there a way to specify which site I want to go to ?


Create new topic
jarledb
Webhead
3117 posts

Uber Geek

Moderator
ID Verified
Trusted
Lifetime subscriber

  #1906512 23-Nov-2017 15:30
Send private message

You have to specify that in the setup on the server. If you are running multiple sites on a server, you are probably sharing the ip-address.

 

if you have added

 

site1.tld  ip-address
site2.tld  ip-address

 

Etc. and not seeing the sites, but another site instead - then you need to look at the web server setup.





Jarle Dahl Bergersen | https://keybase.io/jarledb - Referral Links: Buying a Tesla? Get free extras by using my referral code. - Want $50 off when you join Octopus Energy? Use this referral code.
Are you happy with what you get from Geekzone? Please consider supporting us by making a donation or subscribing.


 
 
 

Trade NZ and US shares and funds with Sharesies (affiliate link).
timmmay
19632 posts

Uber Geek

Trusted
Lifetime subscriber

  #1906544 23-Nov-2017 16:16
Send private message

1.2.3.4 site.com is all I do in hosts. The requests hits the server and it knows how to server it by looking at the web server configuration. If you're seeing the wrong site it's web server config.


martyyn

1846 posts

Uber Geek

ID Verified
Subscriber

  #1906547 23-Nov-2017 16:26
Send private message

Yeah, that's what I'm trying to figure out. It's been a few years since I've played with stuff like this and that was all apache whereas I did this with nginx. The setup for each site was simple enough with EE and it's only now I want to get to one site with no DNS I'm having trouble.

 

The sites all appear to be created properly with the appropriate host files and links etc, but whilst the three other sites all have their DNS setup this one doesn't.

 

I thought I'd found it with having a listen 80 default server command in the sites-available file but that didn't work :(

 

 




marpada
434 posts

Ultimate Geek


  #1906548 23-Nov-2017 16:28
Send private message

There are as well some browser extensions like https://www.requestly.in to add the proper Host header when accessing the IP address of the server, but if the hosts file trick is not working for you probably your webserver is misconfigured. When setting the vhost you probably want to add both the www and without www version.


outdoorsnz
491 posts

Ultimate Geek


  #1906555 23-Nov-2017 16:48
Send private message

martyyn:

 

I've been playing with EE on Vultr in Sydney this week following guides by @michaelmurfy and @timmmay and I'm really liking the speed increase over my hosting in the US.

 

I would like to update and migrate a site before switching the DNS. I've edited my local hosts file to use the Vultr IP address rather than the DNS but as I have a couple of sites on the Vultr instance now it sends me to a different site.

 

Is there a way to specify which site I want to go to ?

 

 

After you edited the hosts file, did you flush your dns cache? You can double check that with a nslookup on the domain.


timmmay
19632 posts

Uber Geek

Trusted
Lifetime subscriber

  #1906558 23-Nov-2017 16:49
Send private message

Post or pm you hosts and nginx config file. Change to example.com example1.com to anonymize. I'll look later on tonight.

martyyn

1846 posts

Uber Geek

ID Verified
Subscriber

  #1906659 23-Nov-2017 17:50
Send private message

I've now gone through a couple of 'guides' on the web and everything appears to be set up correctly. I've tried ipconfig /flushdns and have double checked the config and host files. They aren't complicated and I have others to check against but I appreciate the offer Tim.

 

If I disable the other sites I get an ERR_CONNECTION_REFUSED error in Chrome. So I created another server and added two sites to it. The second one again errored but this time I was told the SSL certificate for site2.com did not correspond to the SSL certificate for the other (site1.com).

 

site2.com has an SSL cert on the existing site (which I want to leave alone) but I haven't created the dev site with --letsencrypt because the DNS doesn't point to it and I would expect it to fail. I wonder if that is the cause ?




timmmay
19632 posts

Uber Geek

Trusted
Lifetime subscriber

  #1906688 23-Nov-2017 18:32
Send private message

Get http working first

martyyn

1846 posts

Uber Geek

ID Verified
Subscriber

  #1913844 6-Dec-2017 13:53
Send private message

Forgot to update this with the solution.

 

Sadly it ended up in the 'I did a few things without testing and I dont know which one fixed it' bucket !!

 

May have been a caching issue or may have been the virtual hosts files on the VPS didn't include listen 80; (or whatever the syntax is) by default because that's the only thing I remember changing.

 

Either way, it's all good now :)

 

Loving the simplicity and speed of Vultr's VPS. Big thanks to @michaelmurfy and @timmmay for their user guides. I'm still finding things in Tim's to try !


jnimmo
1073 posts

Uber Geek


  #1913852 6-Dec-2017 14:03
Send private message

I've had a few issues with EasyEngine (on Vultr) around this recently too especially with SSL config, I think I was using redis caching on one of my WP sites and turning that off seemed to fix it


martyyn

1846 posts

Uber Geek

ID Verified
Subscriber

  #1914849 7-Dec-2017 20:30
Send private message

Hmm, spoke too soon. 

 

I'm going to start from scratch tomorrow with a new server on Vultr and just add one piece at a time.

 

I've read so much about SSL, Cloudflare, Nginx, etc tonight my head is spinning !!

 

 


timmmay
19632 posts

Uber Geek

Trusted
Lifetime subscriber

  #1914850 7-Dec-2017 20:34
Send private message

Ah it's easy enough once you get your head around it. I went from knowing about three Linux commands to writing that tutorial in the space of about three months, building Nginx from source, setting up all kinds of things like fail2ban updating the CloudFlare firewall to ban. Still nowhere near an expert though.


martyyn

1846 posts

Uber Geek

ID Verified
Subscriber

  #1914855 7-Dec-2017 20:39
Send private message

Don't get me wrong I've loved every minute of the time I've put into it so far. But there is just so much information on the web you don't know what to read half the time.

I bet once I have it sorted out will be easy !

Create new topic





News and reviews »

New Air Traffic Management Platform and Resilient Buildings a Milestone for Airways
Posted 6-Dec-2023 05:00


Logitech G Launches New Flagship Console Wireless Gaming Headset Astro A50 X
Posted 5-Dec-2023 21:00


NordVPN Helps Users Protect Themselves From Vulnerable Apps
Posted 5-Dec-2023 14:27


First-of-its-Kind Flight Trials Integrate Uncrewed Aircraft Into Controlled Airspace
Posted 5-Dec-2023 13:59


Prodigi Technology Services Announces Strategic Acquisition of Conex
Posted 4-Dec-2023 09:33


Samsung Announces Galaxy AI
Posted 28-Nov-2023 14:48


Epson Launches EH-LS650 Ultra Short Throw Smart Streaming Laser Projector
Posted 28-Nov-2023 14:38


Fitbit Charge 6 Review 
Posted 27-Nov-2023 16:21


Cisco Launches New Research Highlighting Gap in Preparedness for AI
Posted 23-Nov-2023 15:50


Seagate Takes Block Storage System to New Heights Reaching 2.5 PB
Posted 23-Nov-2023 15:45


Seagate Nytro 4350 NVMe SSD Delivers Consistent Application Performance and High QoS to Data Centers
Posted 23-Nov-2023 15:38


Amazon Fire TV Stick 4k Max (2nd Generation) Review
Posted 14-Nov-2023 16:17


Over half of New Zealand adults surveyed concerned about AI shopping scams
Posted 3-Nov-2023 10:42


Super Mario Bros. Wonder Launches on Nintendo Switch
Posted 24-Oct-2023 10:56


Google Releases Nest WiFi Pro in New Zealand
Posted 24-Oct-2023 10:18









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.







Pluralsight