Page 1 of 1

which apache conf file i need to modify.

PostPosted: 30. September 2006 13:57
by feelexit
I need to modify apache's httpd.conf file

ServerAlias *.your-domain-name.com


I went to apache/conf/ find httpd.conf there, but ServerAlias *.your-domain-name.com , this line is not there.


probably, i got the wrong one, where is the correct one.

PostPosted: 30. September 2006 14:15
by Wiedmann
I need to modify apache's httpd.conf file

Why?

ServerAlias *.your-domain-name.com

"ServerAlias" is only valid inside a virtual host configuration.

PostPosted: 01. October 2006 00:58
by feelexit
need to create sub domain.

make all *.localhost/guestbook , point to locahost/guestbook

in which file i can find virtual host configuration.

i thought its part of httpd.conf

PostPosted: 01. October 2006 01:34
by Wiedmann
need to create sub domain.

Wildcard subdomains you create in a DNS server.

make all *.localhost/guestbook , point to locahost/guestbook

As I told before: pointing "*.localhost" to "localhost" is the job for a DNS server. In this case, the DNS server answer all questions for a hostname in the `domain` "localhost" with the same IP (here 127.0.0.1).
And the Apache webserver answers to all requests for the IP to which he listen.


BTW:
You only need virtual hosts, if you have different content for different hostnames.

PostPosted: 01. October 2006 01:48
by feelexit
I think I asked the wrong question.

This is what I need to do . I wrote a blog application.

when new member registers. its creates a link for them.

www.blog.com/Mike

but I want to show , http://Mike.blog.com .

I think I got the term wrong , not supposed to call it subdomain. I thought subdomain can solve this problem.

PostPosted: 01. October 2006 01:59
by Wiedmann
Ok.

These ("www.blog.com" / "Mike.blog.com") are the real names and both are working? (you can resolve them with nslookup)

PostPosted: 01. October 2006 02:29
by feelexit
i juse used it as example.


blog.com domain name not belong to me.


www.domainname.com/UserName

=>
http://Username.DomainName.com

PostPosted: 01. October 2006 11:20
by Wiedmann
juse used it as example.

No Problem. The you must make the test by yourself.

BTW:
In case of a example, please allways use example.com as host- / domainname.


But the 2nd part of my question is more important:
With your real names, you can make a nslookup with both names?