[wp-hackers] How to make root relative urls work in, , subdomain
Marcus.Pope at springbox.com
Tue Nov 8 22:35:25 UTC 2011
Marty - that's certainly a solution, and a relatively cheap one at that (I'm a dyndns subscriber myself.) But it still requires adding a pinhole to your wifi/internet gateway's dmz, and that is a luxury that doesn't exist for a fair number of people, and a "don't ever do that" principle for others that have routers that support that feature.
In your case, you still have to open port 80, or 8080 or whatever and point all external traffic on that port directly to your dev machine. And that's a security breach that can get you fired in many company environments, and your system hacked on your personal network (unless you practice strict security protocols on your dev machine like not doing any of this on windows os, and keeping your root-level accounts isolated on unix, etc.)
From: wp-hackers-bounces at lists.automattic.com [mailto:wp-hackers-bounces at lists.automattic.com] On Behalf Of Marty Fried
Sent: Friday, November 04, 2011 8:38 PM
To: wp-hackers at lists.automattic.com
Subject: Re: [wp-hackers] How to make root relative urls work in, , subdomain
On Thu, Nov 3, 2011 at 8:37 AM, Marcus Pope <Marcus.Pope at springbox.com>wrote:
> Marty - it is a very good solution for a good percentage of people (I
> hate to say majority because mobile devices are becoming so popular,)
> but if you have to browse or manage your dev site via your iPhone or
> Android device you'll find that there are no options for editing your
> hosts files on those platforms (well, you can on android if you
> jailbreak/root the device.)
> In those cases you have to rely on a more robust approach using a
> higher-end wifi router that allows you do make network wide mappings,
> or customize it with a local network dns address (and then you have to
> build and manage your own dns server.) Many home and small business
> wifi routers do not give you these options, and in this case you are
> left with pushing to production before you can test any work on a mobile platform.
> But it's a good, quick option indeed when you can get away with it.
> I see. One way I get around this is using dynDNS. I have an account
I pay for, a very small amount that I originally got so I could demo sites without uploading to a public web site. One nice feature is that you can create sub-domains on the fly, and dyndns will automatically send it to the main domain. This allows me to set up a virtual domain in apache for the subdomain, so that it automatically becomes a root-level domain.
I'm fairly low volume so far, but if it gets to be too much trouble, I'd create a shell script using sed to automatically create and delete entries in the apache config file (I've been a programmer for many years, but just started doing web development in the past year or so, so writing scripts is pretty easy for me).
wp-hackers mailing list
wp-hackers at lists.automattic.com
More information about the wp-hackers