Hi.
I need to use subdomains as domain accounts.
I used this howto -
http://www.isp-control.net/ispcp/wiki/ho...as_domains
I created new account (subdomain.domain.tld for example)
When i put a subdomain address (something.domain.tld) into my browser i get what is on domain.tld.
Using ispcp RC2c, Debian Etch
i think it is a problem in /etc/apache2/sites-available (-enabled)
ispcp.conf
Code:
# httpd [subdomain.domain.tld] dmn group entry BEGIN.
# httpd [{SUB_NAME}] sub entry BEGIN.
# httpd [{SUB_NAME}] sub entry END.
# httpd [subdomain.domain.tld] dmn entry BEGIN.
<VirtualHost 85.193.53.122:80>
<IfModule mod_fastcgi.c>
SuexecUserGroup vu2013 vu2013
</IfModule>
ServerAdmin root@subdomain.domain.tld
DocumentRoot /var/www/virtual/subdomain.domain.tld/htdocs
ServerName subdomain.domain.tld
ServerAlias www.subdomain.domain.tld subdomain.domain.tld
ErrorLog /var/log/apache2/users/subdomain.domain.tld-error.log
TransferLog /var/log/apache2/users/subdomain.domain.tld-access.log
CustomLog /var/log/apache2/subdomain.domain.tld-traf.log traff
CustomLog /var/log/apache2/subdomain.domain.tld-combined.log combined
Alias /errors /var/www/virtual/subdomain.domain.tld/errors/
ErrorDocument 401 /errors/401/index.php
ErrorDocument 403 /errors/403/index.php
ErrorDocument 404 /errors/404/index.php
ErrorDocument 500 /errors/500/index.php
Redirect /stats http://subdomain.domain.tld/awstats/awstats.pl
Redirect /ispcp http://domain.tld
# httpd dmn entry cgi support BEGIN.
ScriptAlias /cgi-bin/ /var/www/virtual/subdomain.domain.tld/cgi-bin/
<Directory /var/www/virtual/subdomain.domain.tld/cgi-bin>
AllowOverride None
#Options ExecCGI
Order allow,deny
Allow from all
</Directory>
# httpd dmn entry cgi support END.
<IfModule mod_fastcgi.c>
ScriptAlias /php4/ /var/www/fcgi/subdomain.domain.tld/
<Directory "/var/www/fcgi/subdomain.domain.tld">
AllowOverride None
Options +ExecCGI -MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
</IfModule>
<IfModule mod_php4.c>
<Directory /var/www/ispcp/gui>
php_admin_value open_basedir "/var/www/ispcp/gui/:/etc/ispcp/:/proc/:/var/www/virtual/:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
php_admin_value session.save_path "/var/www/ispcp/gui/phptmp/"
</Directory>
</IfModule>
# httpd dmn entry PHP2 support BEGIN.
<IfModule mod_php4.c>
php_admin_value open_basedir "/var/www/virtual/subdomain.domain.tld:/var/www/virtual/subdomain.domain.tld/phptmp:/usr/share/php"
php_admin_value upload_tmp_dir "/var/www/virtual/subdomain.domain.tld/phptmp"
php_admin_value session.save_path "/var/www/virtual/subdomain.domain.tld/phptmp"
php_admin_value sendmail_path '/usr/sbin/sendmail -f vu2013 -t -i'
</IfModule>
# httpd dmn entry PHP2 support END.
<Directory /var/www/virtual/subdomain.domain.tld/htdocs>
# httpd dmn entry PHP support BEGIN.
# httpd dmn entry PHP support END.
Options -Indexes Includes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
# httpd [subdomain.domain.tld] dmn entry END.
# httpd [subdomain.domain.tld] dmn group entry END.