[Locomotive-users] dynamic subdomains
Alex Satrapa
grail at goldweb.com.au
Wed Aug 8 23:48:04 GMT 2007
On 09/08/2007, at 05:19 , alarkspur wrote:
> Is possible configure the file base_lighttpd.conf that it accepts
> dynamic subdomains???
> I have writing something like server.name = "*.localhost:3000"
> but once taken the server the url user.localhost:3000 not found and
> not captured by the lighttpd.
Are you looking for a way to access lighttpd using name-based virtual
hosts? If you have multiple names (eg: foo.local and bar.local)
mapped to the same IP address (eg: 127.0.0.1), you'll need to set up
lighttpd for virtual hosting:
http://www.cyberciti.biz/tips/howto-lighttpd-web-server-setting-up-
virtual-hosting.html
You'll then need to manually update the /etc/hosts file to add the
extra names to the 127.0.0.1 address (or whichever address you want
to run the virtual hosts from).
HTH
Alex
More information about the Locomotive-users
mailing list