Forum Moderators: phranque
[edited by: engine at 11:16 am (utc) on Jan. 28, 2008]
[edit reason] Please use example.com [/edit]
In the DNS server, I have added the following two records:
example.com. 86400 IN A 111.222.111.222
*.example.com. 86400 IN CNAME example.com.
You need the following setting in Apache httpd.conf:
<VirtualHost 111.222.111.222:80>
ServerName www.example.com
ServerAlias *.example.com
# other settings
</VirtualHost>
For more info on this subject see the "Mass Virtual Hosting" section in the Apache URL Rewriting Guide [httpd.apache.org], and search this forum for "rewrite subdomains to subdirectories" and similar phrases.
Jim
visit [webmasterworld.com...] and [webmasterworld.com...] and you will see the first shows 404 error :)