DSN Wild Card Entry Problem

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
saadatshah
Forum Newbie
Posts: 23
Joined: Fri Jul 05, 2002 5:50 am
Location: Lahore

DSN Wild Card Entry Problem

Post 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
User avatar
phice
Moderator
Posts: 1416
Joined: Sat Apr 20, 2002 3:14 pm
Location: Dallas, TX
Contact:

Post by phice »

Do you own MyDomain.com? :P If not, I guess it wouldn't work.. 8O
Image Image
Post Reply