My httpd.conf looks like this:
NameVirtualHost 12.34.56.78:80
<VirtualHost 12.34.56.78:80>
DocumentRoot /var/www/html/site
ServerName www.example.com
<IfModule mod_rewrite.c>
RewriteEngine On
...
</IfModule>
</VirtualHost>
<VirtualHost 12.34.56.78:80>
ServerName blog.example.com
DocumentRoot /var/www/html/blog
</VirtualHost>
Listen *:2194
<VirtualHost *:2194>
Redirect / http://mgr.example.com/
</VirtualHost>
I want to be able to enable 'categories' as subdomains, ie if a user accesses:
science.example.com
It should show him that URL itself, but show him the contents of www.example.com/science.php
It does not have to be a generic / wildcard based approach - these categories will be a small number that I can specify individually. I just dont want whatever I add to interfere with the existing functioning of the site.
How can I do this?