Current time: 11-23-2024, 02:26 AM Hello There, Guest! (LoginRegister)


Post Reply 
mail subdomain alternative page
Author Message
Biox Offline


Posts: 1
Joined: Dec 2009
Reputation: 0
Post: #1
mail subdomain alternative page
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.
12-08-2009 04:39 AM
Find all posts by this user Quote this message in a reply
sakal Offline
Junior Member
*

Posts: 42
Joined: Mar 2010
Reputation: 0
Post: #2
RE: mail subdomain alternative page
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 Wink
04-19-2010 03:32 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)