Creating Subdomain on Local LAMP Stack With Dynamic IP

Soldato
Joined
26 Jun 2009
Posts
3,023
Location
Sheffield
As the title really. I have a LAMP stack installed locally, so the IP address changes all the time.

I want to be able to create sub-domains so that I can browser to <subdomain name>.localhost

I've googled and couldn't find anything, tried everything I can think of out and no luck. Help?
 
This is on Ubuntu, not windows but thanks. :p

I've tried adding new entries to the httpd.conf file, but it won't work. Wondered if there was anything specific I had to do because of the dynamic ip? :(

I dunno if modrewrite would work when using $_SERVER['DOCUMENT_ROOT'] in a php script?
 
Cheers JonB, will try that out later and reply letting you all know how I get on. :P
 
Back
Top Bottom