04-14-2023, 10:09 PM
EHCP 0.29.15.
DEBIAN 5.05
I set a virtual host up, everything worked OK. I then tried setting up a subdomain, and I got a message telling that everything was set up OK, but when I try the subdomain, I get a message that the subdomain was not found.
The following was added by EHCP to /etc/apache2/apache2.conf:
Include /var/www/new/ehcp/apachehcp.conf
Include /var/www/new/ehcp/apachehcp_subdomains.conf
Include /var/www/new/ehcp/apachehcp_auth.conf
Include /var/www/new/ehcp/apachehcp_passivedomains.conf
I now have the following directories:
/var/www/new/
Inside that directory, I now have the following directories:
- ehcp (has in it all the ehcp files, and .conf files)
- images_default_index
- vhosts (it has in it an ehcp directory with only an index.html file)
I also have: /var/www/vhosts and in this directory, I have the domain I created earilier:
/var/www/vhosts/mydomain/mydomain.com/httpdocs/subdomains/sandbox (sandbox is the name of the subdomain).
The file Include /var/www/new/ehcp/apachehcp_subdomains.conf seems to have in it the right information:
#____________start of sandbox.blabplatform.com__paneluser:mydomain_reseller:_id:1____________
<VirtualHost *>
ServerName sandbox.mydomain.com
ServerAlias www.sandbox.mydomain.com
UseCanonicalName Off
DocumentRoot /var/www/vhosts/mydomain/mydomain.com/httpdocs/subdomains/sandbox
#CustomLog /var/www/vhosts/mydomain/mydomain.com/httpdocs/subdomains/sandbox/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/mydomain/mydomain.com/httpdocs/subdomains/sandbox
php_admin_value upload_tmp_dir /var/www/vhosts/mydomain/mydomain.com/httpdocs/subdomains/sandbox/phptmpdir
php_admin_value session.save_path /var/www/vhosts/mydomain/mydomain.com/httpdocs/subdomains/sandbox/phptmpdir
<directory /var/www/vhosts/mydomain/mydomain.com/httpdocs/subdomains/sandbox/phptmpdir/>
Order allow,deny
deny from all
</directory>
<directory /var/www/vhosts/mydomain/mydomain.com/httpdocs/subdomains/sandbox/logs/>
Order allow,deny
deny from all
</directory>
</VirtualHost>
Any ideas?
Restored from old drupal forum, for user uid:3691 username:blabbings
You may reset your password to access your new account here.
DEBIAN 5.05
I set a virtual host up, everything worked OK. I then tried setting up a subdomain, and I got a message telling that everything was set up OK, but when I try the subdomain, I get a message that the subdomain was not found.
The following was added by EHCP to /etc/apache2/apache2.conf:
Include /var/www/new/ehcp/apachehcp.conf
Include /var/www/new/ehcp/apachehcp_subdomains.conf
Include /var/www/new/ehcp/apachehcp_auth.conf
Include /var/www/new/ehcp/apachehcp_passivedomains.conf
I now have the following directories:
/var/www/new/
Inside that directory, I now have the following directories:
- ehcp (has in it all the ehcp files, and .conf files)
- images_default_index
- vhosts (it has in it an ehcp directory with only an index.html file)
I also have: /var/www/vhosts and in this directory, I have the domain I created earilier:
/var/www/vhosts/mydomain/mydomain.com/httpdocs/subdomains/sandbox (sandbox is the name of the subdomain).
The file Include /var/www/new/ehcp/apachehcp_subdomains.conf seems to have in it the right information:
#____________start of sandbox.blabplatform.com__paneluser:mydomain_reseller:_id:1____________
<VirtualHost *>
ServerName sandbox.mydomain.com
ServerAlias www.sandbox.mydomain.com
UseCanonicalName Off
DocumentRoot /var/www/vhosts/mydomain/mydomain.com/httpdocs/subdomains/sandbox
#CustomLog /var/www/vhosts/mydomain/mydomain.com/httpdocs/subdomains/sandbox/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/mydomain/mydomain.com/httpdocs/subdomains/sandbox
php_admin_value upload_tmp_dir /var/www/vhosts/mydomain/mydomain.com/httpdocs/subdomains/sandbox/phptmpdir
php_admin_value session.save_path /var/www/vhosts/mydomain/mydomain.com/httpdocs/subdomains/sandbox/phptmpdir
<directory /var/www/vhosts/mydomain/mydomain.com/httpdocs/subdomains/sandbox/phptmpdir/>
Order allow,deny
deny from all
</directory>
<directory /var/www/vhosts/mydomain/mydomain.com/httpdocs/subdomains/sandbox/logs/>
Order allow,deny
deny from all
</directory>
</VirtualHost>
Any ideas?
Restored from old drupal forum, for user uid:3691 username:blabbings
You may reset your password to access your new account here.