RE: Update redirect to Sentora login to an error page if a sub domain does not exist
11-14-2024, 11:49 AM
(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.
%{SERVER_NAME} !^sentora\.domain\.com$
^ - [F]
(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.