April 24Apr 24 Hello!I recently setup my first Froxlor instance and have been trying to prevent the froxlor login UI from showing on the server's IP address. I would like all logins to happen through hostname.tld. Over the past few hours, I have unsuccessfully been modifying the settings under IPs and Ports to try and achieve this. I tried DocRoots, and a whole bunch of different V-Host settings but everything that worked for preventing the IP logins also affected client sites in some negative way.I was unable to find any other related topics by searching the forum, but I may have just been using the wrong keywords.How would I go about configuring the system to reject any direct-IP requests?Thank you!
April 24Apr 24 Solution DocRoots and settings in froxlor cannot change this behaviour. Your server listens to this IP and of course answers accordingly. You may add rewrite rules or similar to redirect to a domain if the request is not the domain itself, e.g.RewriteEngine On RewriteCond %{HTTP_HOST} !^panel\.example\.tld$ [NC] RewriteRule ^ https://panel.example.tld%{REQUEST_URI} [R=301,L]Alternatively, create a custom vhost file, e.g. 000-fallback.conf and do something like<VirtualHost *:80> ServerName panel.example.tld Redirect permanent / https://panel.example.tld/ </VirtualHost>depending on your needs
Create an account or sign in to comment