I’ve got myself an apache server and I’m trying to learn it’s quirks…
I’ve got DNS to point example.com to 1.2.3.4 and I’ve set up a vhost on the apache2 server.
Now I want to, in the same vhost, point db.example.com to serv the contents of example.com/db.
I was hoping I could use some kind of mod_rewrite og ServerAlias, but sofar I’ve hot a wall.
The DNS part is covered, I just can’t figure out what to do in apache.
In your
.htaccessfile, try something among the lines: