I am trying to set up dynamic sub-domains on my serverand its not making a lot of sense to me. I am what you would call web server inept. I have read the follow apache article: and havn't come away with much more than confusion.
I am fairly certain that I need to create a new virtual host directive in my httpd.conf file. But I have tried that (in what I believe is the correct way) and been unsuccessful. Please take a look at whats below and see if you can help me out.
I am obviously editing a VH directive that was created by my server (I'm using a virtual private server running HSP Complete). I don't really know if I need all the stuff it put in there or not.
The basic gist of what I'm trying to accomplish is to get every request for "whatever.badgetracker.info" to go to /home/webadmin/campname.badgetracker.info/html/system directory.
Any help would be greatly appreciated!!
I am fairly certain that I need to create a new virtual host directive in my httpd.conf file. But I have tried that (in what I believe is the correct way) and been unsuccessful. Please take a look at whats below and see if you can help me out.
I am obviously editing a VH directive that was created by my server (I'm using a virtual private server running HSP Complete). I don't really know if I need all the stuff it put in there or not.
Code:
<VirtualHost 66.242.17.138:80>
<Directory /home/webadmin/campname.badgetracker.info/html>
Options Indexes Includes FollowSymLinks
AllowOverride All
</Directory>
ScriptAlias /cgi-bin/awstats /var/[URL unfurl="true"]www/cgi-bin/awstats[/URL]
Alias /awstats /var/[URL unfurl="true"]www/html/awstats[/URL]
Alias /myadmin /var/[URL unfurl="true"]www/html/myadmin[/URL]
ScriptAlias /mail /var/[URL unfurl="true"]www/cgi-bin/openwebmail/openwebmail.pl[/URL]
ScriptAlias /cgi-bin/openwebmail /var/[URL unfurl="true"]www/cgi-bin/openwebmail[/URL]
Alias /openwebmail /var/[URL unfurl="true"]www/html/openwebmail[/URL]
ServerName *.badgetracker.info
DocumentRoot /home/webadmin/campname.badgetracker.info/html/system
SuexecUserGroup webadmin webadmin
ServerAlias "[URL unfurl="true"]www.campname.badgetracker.info"[/URL]
ServerAdmin "cmonnat@leftofcentercom.com"
ScriptAlias "/cgi-bin/" "/home/webadmin/campname.badgetracker.info/cgi-bin/"
CustomLog "/home/webadmin/campname.badgetracker.info/access_log" "combined"
ErrorLog "/home/webadmin/campname.badgetracker.info/error_log"
</VirtualHost>
The basic gist of what I'm trying to accomplish is to get every request for "whatever.badgetracker.info" to go to /home/webadmin/campname.badgetracker.info/html/system directory.
Any help would be greatly appreciated!!