how to secure login ip

Started by bgf2, December 07, 2016, 07:24:40 PM

Previous topic - Next topic

bgf2

Hello,
i am using cwp to host my sites, but i have an issue, i am using cloudflare for security reasons, but the problem is when someone wants to know my real ip it can be very easy to find, if he just type http://domain-url.com/cpanel and it will redirects to ip:2030
which reveals the original ip. how could i tackle this please explain

dukkha

#1
This is caused by apache default CWP redirect rules

Go to

-Apache Settings
--Apache Redirects

Delete any redirects pointing to your IP addresses or simply replace IP by Domain name.

Hope it helps.

hguariente

Edit

Apache virtual host template

add

Redirect permanent /roundcube http://%domain_name%:2095
Redirect permanent /webmail http://%domain_name%:20


EXP
# vhost_start %domain_name%
<VirtualHost %domain_ip%:%domain_port%>
ServerName %domain_name%
ServerAlias www.%domain_name%
ServerAdmin %admin_email%
DocumentRoot "%homedir%/%username%/public_html"
ScriptAlias /cgi-bin/ "%homedir%/%username%/public_html/cgi-bin/
Redirect permanent /roundcube http://%domain_name%:2095
Redirect permanent /webmail http://%domain_name%:2095
#

aicon

It seems that can't be deleted completely.
Removed all redirects, also edited the vhost templates, but anydomain/cwp and anydomain/cpanel are still redirecting to the IP.
I assume will be fixed in the future versions.
Also I did'n find how to restrict thegui access only thru https.
Any link, description highly appreciated.
In case anyone wants $10 bonus for FREE on cheap cloud VPS from Vultr:
http://www.vultr.com/?ref=6855695
-------------------------------------------------------------------------------------------------
And $10 bonus for FREE on cheap cloud VPS from Digitalocean:
https://www.digitalocean.com/?refcode=c41029801394