Accessing VirtualHost Locally on Ubuntu Web Server
-
@thecreativeone91 said:
@ajstringham said:
172.16.255.20
You can always add an A record for www.site.com for 172.16.255.20 locally. You can even do this on DD-WRT.
Let me try that and see if it works.
-
@thecreativeone91 said:
@ajstringham said:
172.16.255.20
You can always add an A record for www.site.com for 172.16.255.20 locally. You can even do this on DD-WRT.
That only works if the DD-WRT device is your DNS server.
-
@scottalanmiller said:
@thecreativeone91 said:
@ajstringham said:
172.16.255.20
You can always add an A record for www.site.com for 172.16.255.20 locally. You can even do this on DD-WRT.
That only works if the DD-WRT device is your DNS server.
Well, yeah. I assumed that would be implied.
-
@thecreativeone91 he was unaware of the hosts file, it is unlikely that he is running an internally DNS caching server.
-
The hosts file trick worked! They say it can take up to 24 hours. @scottalanmiller , you're right in saying it shouldn't take that long. However, until it propagates systemwide, the hosts file trick works. Thanks!
-
How long has it been at this point?
-
@scottalanmiller said:
@thecreativeone91 he was unaware of the hosts file, it is unlikely that he is running an internally DNS caching server.
@ajstringham You didn't know about the hosts file. haha.
-
@thecreativeone91 said:
@scottalanmiller said:
@thecreativeone91 he was unaware of the hosts file, it is unlikely that he is running an internally DNS caching server.
@ajstringham You didn't know about the hosts file. haha.
I know about the hosts file, but it never occurred to me to use it in that way. Had I thought about it long enough, it probably would have. But off-hand, I didn't think of it that way.
-
-
That's not that long then. Understandable that it has not flowed everywhere yet.
-
@scottalanmiller said:
That's not that long then. Understandable that it has not flowed everywhere yet.
Exactly. I'm not upset that it hasn't. I was just looking for a way to edit it locally while I waited.
-
I find that if I set my DNS as the first task that I do, normally it is working by the time that I need it.
-
@ajstringham said:
@scottalanmiller said:
That's not that long then. Understandable that it has not flowed everywhere yet.
Exactly. I'm not upset that it hasn't. I was just looking for a way to edit it locally while I waited.
Also, if you are using Apache, the first thing listed in your vhost section will be will be the default website if you go to it by IP. At least that is what my CentOS 7 webserver is doing. So I intentionally arranged my vhost file for one specific site to show up if someone uses the IP.
-
@scottalanmiller said:
I find that if I set my DNS as the first task that I do, normally it is working by the time that I need it.
The DNS nameservers were already set. I'm hosting the server on my own hardware. It's waiting for that nameserver to propagate the info out to the world. Probably another couple hours and we'll be good. I just wanted the initial wordpress setup stuff done before the site hit the www.