[HOW-TO] Default entry for any undefined domain or direct IP access
02-16-2015, 07:22 AM
(This post was last modified: 02-16-2015, 07:24 AM by Ron-e.)
If you don't want to show your Sentora panel on your IP or undefined domain you can add the following:
right before:
In the file: /etc/sentora/configs/apache/httpd.conf (don't know if this is the same for Ubuntu)
Code:
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 Demo ● My Github ● Auxio Github ●
● Zentora theme ● S-Type theme ● CstyleX theme ●
● flat-color-icons ● small-n-flat-icons ●
●
Sentora's development takes way too long, so i'm transitioning to HestiaCP.
● My Sentora Demo ● My Github ● Auxio Github ●
● Zentora theme ● S-Type theme ● CstyleX theme ●
● flat-color-icons ● small-n-flat-icons ●
●
Sentora's development takes way too long, so i'm transitioning to HestiaCP.