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.

Poll: Should we add this to Sentora as a default installation feature?
You do not have permission to vote in this poll.
Block sub domains and direct IP access
0%
0 0%
Just block sub domains
50.00%
2 50.00%
No, leave it as is.
50.00%
2 50.00%
Total 4 vote(s) 100%
* You voted for this item. [Show Results]

Update redirect to Sentora login to an error page if a sub domain does not exist
#1
Update redirect to Sentora login to an error page if a sub domain does not exist
Currently, if a sub domain of your main domain (the one that you use for your Sentora login sub domain) does not exist on the server, all requests get sent to the Sentora login.

I myself do not like this and have added custom code to prevent it. (Shows a generic 404 page)

Two solutions:
  1. Redirects to 404 if sub domain does not exist or direct IP access is used.
    - This makes doing this redirect controversial since beta testers and people who prefer to access the Sentora login via IP will no longer be able to do so.
  2. Redirects to 404 if sub domain does not exist and allows direct IP access

Should we add one of these to Sentora as a default installation feature?

Place your vote and comment below about your ideas.
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by:
#2
RE: Update redirect to Sentora login to an error page if a sub domain does not exist
I've been logging in using the server ip and like it. It also tells me if sentora is installed properly without having to change dns settings.
Reply
Thanks given by: TGates
#3
RE: Update redirect to Sentora login to an error page if a sub domain does not exist
Should be under construction page or error 503.
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:
#4
RE: Update redirect to Sentora login to an error page if a sub domain does not exist
(11-09-2024, 01:08 AM)kevwebbie Wrote: I've been logging in using the server ip and like it. It also tells me if sentora is installed properly without having to change dns settings.
kevwebbie:
Note: The code for this already exists in the /etc/sentora/panel/.htaccess file:
Code:
# Optionally you can uncomment the below line and configure your domain to only allow access from the FQDN.
#RewriteCond
%{SERVER_NAME} !^sentora\.domain\.com$
#RewriteRule
^ - [F]
The proposal is to disable IP access by default allowing the server owner to enable IP access if they wish.

(11-09-2024, 01:08 AM)Me.B Wrote: Should be under construction page or error 503.

503?
Quote:503 Service Unavailable
The server cannot handle the request (because it is overloaded or down for maintenance). Generally, this is a temporary state.

Under construction wouldn't be correct either if the resource (or page) doesn't exist, then it's a 404 not found.
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
Application Error: [0204] - problems when adding an A Record of more than 65 A record andrabcm 8 21 ,873 07-30-2019, 11:11 AM
Last Post: andrabcm
Need Sentora HELP ? Alemiz 4 12 ,900 10-26-2018, 04:09 PM
Last Post: republicus
Sentora Feedback and Ideas Xversion 10 32 ,757 10-28-2017, 06:49 AM
Last Post: TGates

Forum Jump:


Users browsing this thread: 1 Guest(s)