which apache conf file i need to modify.

Problems with the Windows version of XAMPP, questions, comments, and anything related.

which apache conf file i need to modify.

Postby feelexit » 30. September 2006 13:57

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.
feelexit
 
Posts: 6
Joined: 23. July 2006 13:07

Postby Wiedmann » 30. September 2006 14:15

I need to modify apache's httpd.conf file

Why?

ServerAlias *.your-domain-name.com

"ServerAlias" is only valid inside a virtual host configuration.
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby feelexit » 01. October 2006 00:58

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
feelexit
 
Posts: 6
Joined: 23. July 2006 13:07

Postby Wiedmann » 01. October 2006 01:34

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.
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby feelexit » 01. October 2006 01:48

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.
feelexit
 
Posts: 6
Joined: 23. July 2006 13:07

Postby Wiedmann » 01. October 2006 01:59

Ok.

These ("www.blog.com" / "Mike.blog.com") are the real names and both are working? (you can resolve them with nslookup)
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby feelexit » 01. October 2006 02:29

i juse used it as example.


blog.com domain name not belong to me.


www.domainname.com/UserName

=>
http://Username.DomainName.com
feelexit
 
Posts: 6
Joined: 23. July 2006 13:07

Postby Wiedmann » 01. October 2006 11:20

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?
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany


Return to XAMPP for Windows

Who is online

Users browsing this forum: milaz357 and 55 guests