NGinx and Subdomains rewrite.

Discussion in 'Installation/Configuration' started by EckyBrazz, Aug 1, 2012.

  1. EckyBrazz

    EckyBrazz New Member

    Hi,

    When using Cpanel and creating a subdomain (exp www3.domain.com)
    it created a directory in /home/domanin/public_html/www3/

    Now I copied over all content of this domain, created a subdomain in ISPconfig 3, created a DNS zone for it
    Code:
    A 	www3 	66.7.XXX.XX 	0
    But got a little stuck on how to redirect is so that the /var/www/client.../www3 works like www3.domain.com

    My server setup : Nginx on Ubuntu (followed the guide http://www.howtoforge.com/installin...pm-and-mysql-support-lemp-on-ubuntu-12.04-lts )
     
  2. till

    till Super Moderator

    In ISPConfig this works a bit different as in cpanel, instaed of adding a subdomain record, which is a special kind of alias of a existing site and is used when a subdomain shall not have its own directory, you add a new website for the subdomain. Click on new website, enter www3.domain.com in the domain field and click on save. Thats also describd in the website section of the manual.
     
  3. EckyBrazz

    EckyBrazz New Member

    Manual of 333 pages. Sorry I missed that part.

    Thanks again
     

Share This Page