This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

[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
Thanks given by: pinguy
#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
Thanks given by:
#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
Thanks given by:
#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
Thanks given by:


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

Forum Jump:


Users browsing this thread: 1 Guest(s)