http://www.perlmonks.org?node_id=467187


in reply to subdomain help

if you run for example apache, it supports VirtualHost, so you can make few different pages, or try checking $ENV{HTTP_HOST}, just like ercparker suggested.