You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Kranti K K Parisa [GetSet-India]" <kr...@gmail.com> on 2007/08/21 13:31:52 UTC

[users@httpd] Urgent: Subdomain configuration

Hi,

I recently started working on Apache.
I want to configure a sub domain

for example i have the domain registered on my name as  www.abc.com
can i configure a subdomain like blogs.abc.com?

for that i need to register for that domain or we can achieve this with
apache?

thanks in advance.

-- 
------------------
Best Regards
Kranti Kiran Kumar Parisa
Mobile: +91 - 9849 - 625 - 625
            +91 - 9391 - 438 - 738

Re: [users@httpd] Urgent: Subdomain configuration

Posted by solidzh <so...@gmail.com>.
2007/8/22, Kiu <ki...@gmx.net>:
>
> if
> ping abc.com
> and
> ping blog.abc.com
> results in the same ip address, you have a wildcard domain (*.abc.com).
>

May or may not.
You can set this in DNS zone,

abc.com  IN  A  1.1.1.1
blog.abc.com  IN  A  2.2.2.2

This is not a wildcard domain.:)

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Urgent: Subdomain configuration

Posted by Kiu <ki...@gmx.net>.
Neville Hillyer wrote:
> I am not a DNS expert but I suspect many DNSs have to explicitly list 
> each sub-hostname however it is clear from 
> http://www.ietf.org/rfc/rfc4592.txt that there is no reason why a DNS 
> cannot be set to eg:
> *.hostname.com
> Can anybody say if DNSs operated by ISPs normally default to this? 
> Clearly it would save much unnecessary work with minimal additional 
> security issues.
Just give it a try.

if
ping abc.com
and
ping blog.abc.com
results in the same ip address, you have a wildcard domain (*.abc.com).

-- 
kiu


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Urgent: Subdomain configuration

Posted by solidzh <so...@gmail.com>.
2007/8/22, Kranti K K Parisa [GetSet-India] <kr...@gmail.com>:
> yep that is right..  how can we achieve subdomains if ISP is holding the
> DNS?

Do you mean you can't control your domain's DNS? That's not good I think.
If you don't know the special domain names,you don't have the
condition to set virtual hosts.
Maybe you can get the request domains by programming,via the http HOST header.

>
> no way other than requesting them for subdomain and pay them?

The best way is setting up your own DNS Server.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Urgent: Subdomain configuration

Posted by "Kranti K K Parisa [GetSet-India]" <kr...@gmail.com>.
yep that is right..  how can we achieve subdomains if ISP is holding the
DNS?

no way other than requesting them for subdomain and pay them?


On 8/21/07, Neville Hillyer <n....@open.ac.uk> wrote:
>
>  At 7:35 pm +0800 21/8/07, solidzh wrote:
>
> 2007/8/21, Kranti K K Parisa [GetSet-India] <kr...@gmail.com>:
> > Hi,
> >
> > I recently started working on Apache.
> > I want to configure a sub domain
> >
> > for example i have the domain registered on my name as  www.abc.com
> > can i configure a subdomain like blogs.abc.com?
> >
>
> Yes Apache can do it easily.You need a name-based virtual host.Given
> your apache is 2.0 version,you could see this document:
>
> http://httpd.apache.org/docs/2.0/vhosts/name-based.html
>
>
>
> An interesting well written page but note the following quote from it:
>
> "Of course, you can't just make up names and place them in ServerName or
> ServerAlias. You must first have your DNS server properly configured to map
> those names to an IP address associated with your server."
>
> I am not a DNS expert but I suspect many DNSs have to explicitly list each
> sub-hostname however it is clear from http://www.ietf.org/rfc/rfc4592.txtthat there is no reason why a DNS cannot be set to eg:
> *.hostname.com
> Can anybody say if DNSs operated by ISPs normally default to this? Clearly
> it would save much unnecessary work with minimal additional security issues.
>
> Neville
>
>
>
>
>


-- 
------------------
Best Regards
Kranti Kiran Kumar Parisa
Mobile: +91 - 9849 - 625 - 625
            +91 - 9391 - 438 - 738

Re: [users@httpd] Urgent: Subdomain configuration

Posted by Neville Hillyer <n....@open.ac.uk>.
At 7:35 pm +0800 21/8/07, solidzh wrote:
>2007/8/21, Kranti K K Parisa [GetSet-India] <kr...@gmail.com>:
>>  Hi,
>>
>>  I recently started working on Apache.
>>  I want to configure a sub domain
>>
>>  for example i have the domain registered on my name as  www.abc.com
>>  can i configure a subdomain like blogs.abc.com?
>>
>
>Yes Apache can do it easily.You need a name-based virtual host.Given
>your apache is 2.0 version,you could see this document:
>http://httpd.apache.org/docs/2.0/vhosts/name-based.html


An interesting well written page but note the following quote from it:

"Of course, you can't just make up names and place them in ServerName 
or ServerAlias. You must first have your DNS server properly 
configured to map those names to an IP address associated with your 
server."

I am not a DNS expert but I suspect many DNSs have to explicitly list 
each sub-hostname however it is clear from 
http://www.ietf.org/rfc/rfc4592.txt that there is no reason why a DNS 
cannot be set to eg:
*.hostname.com
Can anybody say if DNSs operated by ISPs normally default to this? 
Clearly it would save much unnecessary work with minimal additional 
security issues.

Neville




Re: [users@httpd] Urgent: Subdomain configuration

Posted by solidzh <so...@gmail.com>.
2007/8/21, Kranti K K Parisa [GetSet-India] <kr...@gmail.com>:
> Hi,
>
> I recently started working on Apache.
> I want to configure a sub domain
>
> for example i have the domain registered on my name as  www.abc.com
> can i configure a subdomain like blogs.abc.com?
>

Yes Apache can do it easily.You need a name-based virtual host.Given
your apache is 2.0 version,you could see this document:
http://httpd.apache.org/docs/2.0/vhosts/name-based.html

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org