When I’m working on a new project, I often find myself wanting to setup a subdomain (e.g. http://myproject.dev) in my local environment to use while doing development. If you’re using XAMPP (or standalone Apache), this is actually a pretty easy thing to do. These instructions should work in both Windows and Linux environments. I’ll attempt to make notes where things differ. Step 1 Setting up subdomains requires using a VirtualHost in Apache.