mail subdomain alternative page - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Support Area (/forum-30.html) +--- Forum: Usage (/forum-34.html) +--- Thread: mail subdomain alternative page (/thread-8695.html) |
mail subdomain alternative page - Biox - 12-08-2009 04:39 AM Hello, I'm new to ispCP and I'm not a Linux expert. I've installed ispCP on Debian 5.0 64bit, it's all ok, but if I visit mail.mydomain.com it will show the content of the main domain. How I can show a "Subdomain disable" page or something else? Thanks. RE: mail subdomain alternative page - sakal - 04-19-2010 03:32 PM Little HELP : Make DIR : mkdir /var/www/ispcp/gui/tools/domain_dissable/ Make Website: nano /var/www/ispcp/gui/tools/domain_dissable/index.htm In this file write text what you want on website than save it and go on : chown -R vu2000:www-data /var/www/ispcp/gui/tools/domain_dissable nano /etc/apache2/sites-available/09-domain_dissable insert the following content: <VirtualHost XXX.XXX.XXX.XXX:80> ServerAdmin webmaster@yourdomain.tld DocumentRoot /var/www/ispcp/gui/tools/domain_dissable ServerName XXX.yourdomain.tld ServerAlias XXX.yourdomain.tld ErrorLog /var/log/apache2/users/domain_dissable-error.log TransferLog /var/log/apache2/users/domain_dissable-access.log CustomLog /var/log/apache2/domain_dissable-traf.log traff CustomLog /var/log/apache2/domain_dissable-combined.log combined <IfModule suexec_module> SuexecUserGroup vu2000 vu2000 </IfModule> <Directory /var/www/ispcp/gui/tools/domain_dissable> Options -Indexes Includes FollowSymLinks MultiViews AllowOverride None Order allow,deny Allow from all </Directory> <IfModule mod_fcgid.c> <Directory /var/www/ispcp/gui/tools/domain_dissable> FCGIWrapper /var/www/fcgi/master/php5-fcgi-starter.php Options +ExecCGI </Directory> <Directory "/var/www/fcgi/master"> AllowOverride None Options +ExecCGI MultiViews -Indexes Order allow,deny Allow from all </Directory> </IfModule> <IfModule mod_fastcgi.c> ScriptAlias /php5/ /var/www/fcgi/master/ <Directory "/var/www/fcgi/master"> AllowOverride None Options +ExecCGI MultiViews -Indexes Order allow,deny Allow from all </Directory> </IfModule> <IfModule mod_php5.c> <Directory /var/www/ispcp/gui/tools/domain_dissable> php_admin_value open_basedir "/var/www/ispcp/gui/tools/domain_dissable/:/etc/ispcp/:/var/run/ispcp.lock:/proc/:/bin/df:/bin/mount:/var/log/rkhunter.log:/var/log/chkrootkit.log:/usr/share/php/" php_admin_value session.save_path "/var/www/ispcp/gui/phptmp/" php_admin_value upload_tmp_dir "/var/www/ispcp/gui/phptmp/" </Directory> </IfModule> </VirtualHost> DONT FORGET : The data for <VirtualHost xxx.xxx.xxx.xxx:80, ServerAdmin und ServerName need to be adjusted with regard to your own conditions. Than Save and exit and go on : Enable the Site a2ensite /etc/apache2/sites-available/09-domain_dissable RELOAD Apache /etc/init.d/apache2 force-reload Hope it HELP |