Current time: 12-05-2021, 08:42 AM Hello There, Guest! (LoginRegister)


Post Reply 
hide Ispcp admin login page from Subdomain
Author Message
kandsgroup Offline


Posts: 3
Joined: Sep 2011
Reputation: 0
Post: #1
hide Ispcp admin login page from Subdomain
Hi all,

when i enter a subdomain, for example any.mydomain.com it is showing the default ispcp admin login page.

how can i hide this?,

is it possible that when a user wrongly enter a subdomain it will redirect to the main?

example i need anyname.mydomain.com redirect to http://www.mydomain.com

i have already edited 00_master.conf (both /etc/apache2/sites-enabled and /etc/ispcp/apache ) ServerAdmin to {http://admin.mydomain.com/} bt still showing the ispcp login page.

ispCP 1.0.7 OMEGA
build: 20101124

please help. thank you
(This post was last modified: 09-17-2011 10:41 PM by kandsgroup.)
09-17-2011 04:46 PM
Find all posts by this user Quote this message in a reply
yesmeck Offline


Posts: 2
Joined: Sep 2011
Reputation: 0
Post: #2
RE: hide Ispcp admin login page from Subdomain
It seems you are using debian(or ubuntu?), you can edit /etc/apache2/sites-avaliable/default,and change the following line:
Code:
<VirtualHost *:80>
to:
Code:
<VirtualHost IP:80>
the 'IP' is your server's ip address.
then,enable the default config:
Code:
a2ensite default
(This post was last modified: 09-27-2011 03:24 AM by yesmeck.)
09-27-2011 03:23 AM
Find all posts by this user Quote this message in a reply
kandsgroup Offline


Posts: 3
Joined: Sep 2011
Reputation: 0
Post: #3
RE: hide Ispcp admin login page from Subdomain
(09-27-2011 03:23 AM)yesmeck Wrote:  It seems you are using debian(or ubuntu?), you can edit /etc/apache2/sites-avaliable/default,and change the following line:
Code:
<VirtualHost *:80>
to:
Code:
<VirtualHost IP:80>
the 'IP' is your server's ip address.
then,enable the default config:
Code:
a2ensite default

Hi thanks for the reply ,

i am using Debian 6.0 /Squeeze (64Bit) and
ispCP 1.0.7 OMEGA , build: 20101124
09-27-2011 10:16 PM
Find all posts by this user Quote this message in a reply
Visas Offline


Posts: 2
Joined: Oct 2011
Reputation: 0
Post: #4
RE: hide Ispcp admin login page from Subdomain
I am also looking for it.
10-01-2011 06:48 PM
Find all posts by this user Quote this message in a reply
kandsgroup Offline


Posts: 3
Joined: Sep 2011
Reputation: 0
Post: #5
RE: hide Ispcp admin login page from Subdomain
Hi Yesmeck ,

Thanks for your help, i managed to solve by following your steps.

after that if i want to log in the ISPCP admin i have to re edit <VirtualHost *:80> this line in /etc/apache2/sites-avaliable/default.

other than that directly accessing the admin page (IP) i just get this message.

"It works! This is the default web page for this server. The web server software is running but no content has been added, yet."

currently i have one IP address with dedicated server.

my question are

1. is it possible to setup the same IP address both ISPCP admin and the websites?

2. if yes how to setup both with out seeing the ISPCP admin page in every sub domain?

thanks again for helping.
10-13-2011 08:53 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)