| Linode Forum https://forum.linode.com/ |
|
| Virtual Hosts https://forum.linode.com/viewtopic.php?f=19&t=5609 |
Page 1 of 1 |
| Author: | liquid_1520 [ Sat May 22, 2010 10:58 am ] |
| Post subject: | Virtual Hosts |
So, I'm usually used to making 1 site per VPS, but I need to host 2 on 1 VPS to save money. I have fedora 12 and apache on it. This is my vhost.conf file Code: NameVirtualHost *:80 I just want to make sure that it's right before I switch servers. And, my domains are hosted on godaddy + 1and1. If I pointed the domains to those IPs, would it work fine right now? Or would I need to do something else? |
|
| Author: | rsk [ Sat May 22, 2010 12:13 pm ] |
| Post subject: | |
Seems perfectly good, just check twice if the user webserver's running at has read (and write, if necessary) access to the site dirs. And yes, you just need to point the A records for "@" and "www" in your current domain control panel to the Linode's IP. Also, if you want to do a "dry test" before switching the DNS, you can add a line Code: your.linodes.ip.addr teamlnd.com www.teamlnd.com rs-legacy.com www.rs-legacy.com to your /etc/hosts or %SystemRoot%\system32\drivers\etc\hosts file, to make your own PC access the Linode when given one f these names. |
|
| Author: | liquid_1520 [ Sun May 23, 2010 11:16 am ] |
| Post subject: | |
Ok thanks, and should I remove that line once I point the domains, or no? Also, I have the domains already pointed to the site, which is on another host. Is there anyway I can test it without having to re-point the domains? |
|
| Author: | rsk [ Sun May 23, 2010 11:39 am ] |
| Post subject: | |
The hosts file "overrides" DNS resolution. So, if you have a line in hosts file binding a domain name to some IP, it doesn't matter if the DNS isn't pointing to anywhere, or to somewhere else; your machine will use the IP specified. So, it's a perfect way to test the "new" server while leaving the domain (and thus, everyone else in the world Once you're done, remove the line and repoint the DNS to new one, to switch the "whole Internet" to the new address. |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|