04-14-2023, 10:12 PM
* first, disable subdomains for that domain,
to do that, in phpmyadmin (or in ehcp) delete your subdomains. (if you
delete in ehcp, ehcp will delete subdomain files. so, either backup
files for subdomains, or delete from phpmyadmin)
* choose the domain you want to do this, sefcdn.net in this case,
* click on "edit apache template"
* you will see apache template for that domain. below the existing
code, add required subdomain apache config such as:
<code><VirtualHost *>
ServerName ff.ddd.com
ServerAlias www.ff.ddd.com
UseCanonicalName Off
DocumentRoot /var/www/vhosts/ddd.com/ddd.com/httpdocs/subdomains/ff
#CustomLog
/var/www/vhosts/ddd.com/ddd.com/httpdocs/subdomains/ff/logs/access_log
combined # homedir yerine, domainhomedir gibi bisey olmali...
CustomLog /var/log/apache_common_access_log combined
php_admin_value open_basedir
/var/www/vhosts/ddd.com/ddd.com/httpdocs/subdomains/ff
php_admin_value upload_tmp_dir
/var/www/vhosts/ddd.com/ddd.com/httpdocs/subdomains/ff/phptmpdir
php_admin_value session.save_path
/var/www/vhosts/ddd.com/ddd.com/httpdocs/subdomains/ff/phptmpdir
</VirtualHost>
change paths as you wish.
this way, you will be able to use subdomains with any path. your
subdomains will not be listed in ehcp's subdomains link, however, it
will work.
dont forget the 1st step, because, without it, there will be two
config for same subdomain, in which apache will raise error.
Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
to do that, in phpmyadmin (or in ehcp) delete your subdomains. (if you
delete in ehcp, ehcp will delete subdomain files. so, either backup
files for subdomains, or delete from phpmyadmin)
* choose the domain you want to do this, sefcdn.net in this case,
* click on "edit apache template"
* you will see apache template for that domain. below the existing
code, add required subdomain apache config such as:
<code><VirtualHost *>
ServerName ff.ddd.com
ServerAlias www.ff.ddd.com
UseCanonicalName Off
DocumentRoot /var/www/vhosts/ddd.com/ddd.com/httpdocs/subdomains/ff
#CustomLog
/var/www/vhosts/ddd.com/ddd.com/httpdocs/subdomains/ff/logs/access_log
combined # homedir yerine, domainhomedir gibi bisey olmali...
CustomLog /var/log/apache_common_access_log combined
php_admin_value open_basedir
/var/www/vhosts/ddd.com/ddd.com/httpdocs/subdomains/ff
php_admin_value upload_tmp_dir
/var/www/vhosts/ddd.com/ddd.com/httpdocs/subdomains/ff/phptmpdir
php_admin_value session.save_path
/var/www/vhosts/ddd.com/ddd.com/httpdocs/subdomains/ff/phptmpdir
</VirtualHost>
change paths as you wish.
this way, you will be able to use subdomains with any path. your
subdomains will not be listed in ehcp's subdomains link, however, it
will work.
dont forget the 1st step, because, without it, there will be two
config for same subdomain, in which apache will raise error.
Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.