Re: Using Virtual hosts for all the websites in one instance of Apache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Charan wrote:
Hi,

we have hundreds of websites and each website has multiple sub
domains. All the sites are running under sun web server 7.0
For example, www.hosting.com is the main domain, it also has sub
domain as www.hasting.com. www.hasting.com will be redirected back to
www.hosting.com. sometimes, if the domain name is
www.hostingforyou.com then it is redirected to a deep link of
www.hosting.com like www.hosting.com/docs/newdomain.html or else some
external link. All these redirections should be 301 and also non wwww
to www. These domain names have been setup at the DNS level.

Instead of adding virtual host for hasting.com in sun web server. Our
company wants to add all these subdomains of all websites in one
instance of apache web server. Is it possible to do?

-
Probably, but it would help if you stopped using words like "subdomain" in a context that does not seem to make sense. In no way is for example www.hasting.com a subdomain of www.hosting.com, and talking of subdomains of a website makes no sense at all. You may want to have a look at the on-line Apache documentation, and particularly at directives such as ServerName and ServerAlias, and at the virtual host documentation at http://httpd.apache.org/docs/2.2/vhosts/ and also maybe at mod_rewrite : http://httpd.apache.org/docs/2.2/mod/mod_rewrite.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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux