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
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:
include(../exampletoinclude.php);
I have modified file /etc/httpdocs/conf.d
# ATTENTION!
# DO NOT MODIFY THIS FILE OR ANY PART OF IT. THIS CAN RESULT IN IMPROPER PLESK
# FUNCTIONING OR FAILURE, CAUSE DAMAGE AND LOSS OF DATA.
#Include '/usr/local/psa/admin/conf/generated/13366229130.23350700_server.include'
#Include '/usr/local/psa/admin/conf/generated/13366229130.23350700_horde.include'
#Include '/usr/local/psa/admin/conf/vhosts_bootstrap.conf*'
#I've commented that lines because i don't want to another Virtualhosts,i don't want to set a default vhost nor Horder
Include /var/www/vhosts/domain.com/conf/vhost.conf
and the file /var/www/vhosts/domain.com/conf/vhost.conf (to create subdomains):
#
#Spanish Version
<VirtualHost *:80>
ServerName es.domain.com
ServerAlias www.es.domain.com
DocumentRoot "/var/www/vhosts/domain.com/es"
#ErrorLog "logs/httpd/es.domain.com/error_log.log"
#CustomLog "logs/httpd/es.domain.com/error_log.log"
<Directory "/var/www/vhosts/domain.com/es">
Order Allow,Deny
Allow from All
</Directory>
</VirtualHost>
#
#English Version
<VirtualHost *:80>
ServerName en.domain.com
ServerAlias www.en.domain.com
DocumentRoot "/var/www/vhosts/domain.com/en"
#ErrorLog "logs/httpd/en.domain.com/error_log.log"
#CustomLog "logs/httpd/en.domain.com/error_log.log"
<Directory "/var/www/vhosts/domain.com/en">
Order Allow,Deny
Allow from All
</Directory>
</VirtualHost>
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: