Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to change the {homedir}
#1
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.
Reply
#2
Anyone that can give me advice?

Restored from old drupal forum, for user uid:4324 username:pepper
You may reset your password to access your new account here.
Reply
#3
two ways:

1. actually you should not do that in that way. Pointing two domains to same point is called "aliasing". So, The easy way:

add 1st domain normally. choose that domain in ehcp. click "edit domain aliases"

2. a way, but not suggested. If you somehow don't want to use aliases, and use a separate domain definition (such as two domains are owned by different users, but should point to same place), do this way:

add both domains normally,
choose 2nd domain, edit apache/webserver template
change homedir to any value you wish, such as target of 1st domain

Restored from old drupal forum, for user uid:4324 username:pepper
You may reset your password to access your new account here.
Reply
#4
Thank you for your answer, i will try and let you know. I want to try the new feature of prestashop 1.5 that is called multistore. It says to point second domain to the folder of the physical site. Apache will do the rest.

Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Reply
#5
Aliases work just fine, thank you one more time.

Restored from old drupal forum, for user uid:4324 username:pepper
You may reset your password to access your new account here.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)

Online Shopping App
Online Shopping - E-Commerce Platform
Online Shopping - E-Commerce Platform
Feinunze Schmuck Jewelery Online Shopping