![]() |
|
Update redirect to Sentora login to an error page if a sub domain does not exist - Printable Version +- Sentora Support Forums (https://senforums.mach-hosting.com) +-- Forum: General Forums - (Non-Sentora Support) (https://senforums.mach-hosting.com/forumdisplay.php?fid=1) +--- Forum: Sentora Development (https://senforums.mach-hosting.com/forumdisplay.php?fid=54) +--- Thread: Update redirect to Sentora login to an error page if a sub domain does not exist (/showthread.php?tid=12999) |
Update redirect to Sentora login to an error page if a sub domain does not exist - TGates - 01-28-2024 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:
Should we add one of these to Sentora as a default installation feature? Place your vote and comment below about your ideas. RE: Update redirect to Sentora login to an error page if a sub domain does not exist - kevwebbie - 08-23-2024 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. RE: Update redirect to Sentora login to an error page if a sub domain does not exist - Me.B - 11-09-2024 Should be under construction page or error 503. RE: Update redirect to Sentora login to an error page if a sub domain does not exist - TGates - 11-14-2024 (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](11-09-2024, 01:08 AM)Me.B Wrote: Should be under construction page or error 503. 503? Quote:503 Service Unavailable Under construction wouldn't be correct either if the resource (or page) doesn't exist, then it's a 404 not found. |