[HOW-TO] Default entry for any undefined domain or direct IP access
#1
[HOW-TO] Default entry for any undefined domain or direct IP access
If you don't want to show your Sentora panel on your IP or undefined domain you can add the following:

Code:
#Default entry for any undefined domain or direct IP access <VirtualHost *:80>        Redirect 404 / # It you like to make a special page for this you can use the following line. # DocumentRoot "/adres/to/costum/page/nonexist/" </VirtualHost>

right before:

Code:
# Now we include the generic VHOST configuration file that holds all Sentora user hosted vhost data Include /etc/sentora/configs/apache/httpd-vhosts.conf

In the file: /etc/sentora/configs/apache/httpd.conf  (don't know if this is the same for Ubuntu)

My Sentora DemoMy GithubAuxio Github
Zentora themeS-Type themeCstyleX theme
flat-color-iconssmall-n-flat-icons

Sentora's development takes way too long, so i'm transitioning to HestiaCP.
Reply
#2
RE: [HOW-TO] Default entry for any undefined domain or direct IP access
You can also add a .htaccess that would prevent IP access or restrict only access to panel domain without playing with apache host files.

M B
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask

200$ free to start your VPS 60 days credit
Reply
#3
RE: [HOW-TO] Default entry for any undefined domain or direct IP access
How To Config With Https?

I try This But It's Not Working on Centos 6

#Default entry for any undefined domain or direct IP access
<VirtualHost *:443>
Reply
#4
RE: [HOW-TO] Default entry for any undefined domain or direct IP access
(02-16-2015, 07:22 AM)Ron-e Wrote: In the file: /etc/sentora/configs/apache/httpd.conf  (don't know if this is the same for Ubuntu)

Its the same for Ubuntu.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Change Panel Sub-domain TGates 7 41 ,710 06-12-2017, 08:27 AM
Last Post: TGates
How do I Change Default Username from zadmin to somewhat alikhan88 11 42 ,590 02-17-2017, 04:24 AM
Last Post: TGates
Is there a way to change the default admin name "zAdmin" dsmarter 3 11 ,740 02-12-2017, 01:42 PM
Last Post: TGates

Forum Jump:


Users browsing this thread: 1 Guest(s)