Apache Dynamic Subdomains
So far Ive got<VirtualHost xx.xx.xx.xx:80>
ServerName example [dot] com
ServerAlias www [dot] example [dot] com
DocumentRoot /home/example/public_html
ErrorLog /home/example/logs/error_log
CustomLog /home/example/logs/access_log common
ScriptAlias /cgi-bin/ /home/example/cgi-bin/
<Directory /home/example/public_html>
Options Indexes FollowSymLinks
</Directory>
VirtualDocumentRoot /usr/home/%1/public_html
VirtualScriptAlias /usr/home/%1/cgi-bin
</VirtualHost>
<VirtualHost xx.xx.xx.xx:80>
ServerName example2 [dot] com
ServerAlias www [dot] example2 [dot] com
DocumentRoot /home/example2/public_html
ErrorLog /home/example2/logs/error_log
CustomLog /home/example2/logs/access_log common
ScriptAlias /cgi-bin/ /home/example2/cgi-bin/
<Directory /home/example2/public_html>
Options Indexes FollowSymLinks
</Directory>
</VirtualHost>
However this doesnt seem to work. I had someone tell me that %1 might be wrong but they were vague about why. Im open to other ways to do this I basicly want www [dot] example [dot] com and example [dot] com to work and all others like blah [dot] example [dot] com to goto /usr/home/blah/public_html
Again thanks ahead of time
PS it is example [dot] com because of my being new.