Domain and Subdomains with Virtual Hosts in Apache and Plesk

Discussion in 'Installation and Configuration in Windows and Linux' started by sreon1r, Jan 15, 2012.

  1. sreon1r

    sreon1r Bit poster

    Messages:
    1
    Hello to all, first i have to say that i am new with Plesk and i am spanish so it's possible that my english is not so good..

    Well..i'm trying to create an domain,and subdomains (subdomains for support each language) and I would like the structure were that way:
    /var/www/vhosts/domain.com/httpdocs(scripts JS,includes PHP,scripts CSS..)/subdomains(content of the current language)

    Because i don't want to duplicate CSS,JS and includes PHP files..

    So when i want to include file that are in /var/www/vhosts/domain/httpdocs i should include in this way:
    I have modified file /etc/httpdocs/conf.d
    and the file /var/www/vhosts/domain.com/conf/vhost.conf (to create subdomains):


    I have created all the necessary directories

    But when i reboot the system,it doesn't work, and i try to go to es.domain.com the browser goes to the Horde login,and I don't want that!

    It should go to /var/www/vhosts/domain.com/es

    I am not sure if I would create a Virtual Host of domain.com..but I think creating that virtual host,it would not solve the problem..

    Please,how can I solve it?

    Thanks in advance for your help
     
    Last edited: Jan 15, 2012

Share This Page