04-14-2023, 10:13 PM
Hi, I need to set two domains to use same root folder.
Now in the apache template says:
DocumentRoot {homedir}/httpdocs
How can I specify so this domain to use the homedir of other domain.
Or in other word i want to complete this action thru ehcp apache template of some domain.
<VirtualHost *:80>
ServerName domain1.com
ServerAlias www.domain1.com
DocumentRoot "/var/www/vhost/reseller/domain1/httpdocs"
DirectoryIndex index.php
</VirtualHost>
<VirtualHost *:80>
ServerName domain2.com
ServerAlias www.domain2.com
DocumentRoot "/var/www/vhost/reseller/domain1/httpdocs"
DirectoryIndex index.php
</VirtualHost>
Which file I need to edit?
Restored from old drupal forum, for user uid:4324 username:pepper
You may reset your password to access your new account here.
Now in the apache template says:
DocumentRoot {homedir}/httpdocs
How can I specify so this domain to use the homedir of other domain.
Or in other word i want to complete this action thru ehcp apache template of some domain.
<VirtualHost *:80>
ServerName domain1.com
ServerAlias www.domain1.com
DocumentRoot "/var/www/vhost/reseller/domain1/httpdocs"
DirectoryIndex index.php
</VirtualHost>
<VirtualHost *:80>
ServerName domain2.com
ServerAlias www.domain2.com
DocumentRoot "/var/www/vhost/reseller/domain1/httpdocs"
DirectoryIndex index.php
</VirtualHost>
Which file I need to edit?
Restored from old drupal forum, for user uid:4324 username:pepper
You may reset your password to access your new account here.