Page 1 of 1

DSN Wild Card Entry Problem

Posted: Mon Sep 16, 2002 2:47 am
by saadatshah
HI All,

i ve a problem....i m working on a project in which i need to handle subdomains (without creating virtual block for each user in httpd.conf of apache).........

when a user register with the site he 'll get a URL like

http://www.someuser.mydomain.com


and when the user write the above address...the request should come 2 the main page of mydomain...so that the user ca b redirected to any particular location or directory......


the following is my httpd.conf entry......

************************************

<VirtualHost 192.168.0.1>
ServerAlias http://www.mydomain.com <http://www.mydomain.com> mydomain.com
*.mydomain.com
ServerAdmin webmaster@mydomain.com
DocumentRoot /home/mydomain/public_html
BytesLog domlogs/mydomain.com-bytes_log
User somedomainuser
Group somedomainuser
ServerName http://www.mydomain.com <http://www.mydomain.com>
ScriptAlias /cgi-bin/ /home/mydomain/public_html/cgi-bin/
CustomLog domlogs/mydomain.com combined
ScriptAlias /cgi-bin/ /home/mydomain/public_html/cgi-bin/
</VirtualHost>

***************************************

but i m not getting my desired result.......i m getting server not found message..........can any1 provide any solution for this.........



Thx 8O

Posted: Mon Sep 16, 2002 9:27 am
by phice
Do you own MyDomain.com? :P If not, I guess it wouldn't work.. 8O