Toucan
30th July 2010, 00:59
I keep seeing posted time and time again people trying to access their site, without the domain having DNS entries.
The answer is as usual edit the etc/hosts file on the client machine.
...but I was wondering, phpmyadmin and webmail can both be accessed with http://my.ip./webmail and I notice that webmail seems to use a symlink to another directory. So you can probably see the question coming, could a symlink or similar be used to to serve a site linking from the apache root directory to the new domain without the need to enter dns settings?
To achieve something like this, http://my.ip/mynewsitewithnodns
That way people could access unregistered sites before domain names bought, dns entered etc etc.
Maybe my idea is crazy.. but if someone could answer before i get too curious, try it myself and break my set up!
The answer is as usual edit the etc/hosts file on the client machine.
...but I was wondering, phpmyadmin and webmail can both be accessed with http://my.ip./webmail and I notice that webmail seems to use a symlink to another directory. So you can probably see the question coming, could a symlink or similar be used to to serve a site linking from the apache root directory to the new domain without the need to enter dns settings?
To achieve something like this, http://my.ip/mynewsitewithnodns
That way people could access unregistered sites before domain names bought, dns entered etc etc.
Maybe my idea is crazy.. but if someone could answer before i get too curious, try it myself and break my set up!