[BlueOnyx:27264] Re: Server Desktop alias problem
Michael Stauber
mstauber at blueonyx.it
Sat Sep 28 01:43:26 -05 2024
Hi Michael,
> I want https://www.domain.com/login <https://www.domain.com/login> to
> redirect to the server name. So I added login as a GUI Alias however I
> then noticed that the login page for WordPress sites no longer looks
> correct. The problem is that
> https://www.domain.com/wp-admin/css/login.min.css
> <https://www.domain.com/wp-admin/css/login.min.css> is being redirected
> to the server name/login.
I just checked this. Under "Server Management" / "Maintenance" /
"Server-Desktop" you can tick the checkbox "Redirect to Server-Name" and
can define which "GUI Aliases" redirects Apache URLs to the GUI Login page.
By default there is only one "GUI Aliases" and it's "login".
The script /etc/httpd/conf.perl/00-default-vsite.pl generates both the
SSL configuration of the server on the fly and also automatically
inserts the GUI redirects. If you have "login" defined under "GUI
Aliases", then the following dynamic configuration will be inserted:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^([^:]+)
RewriteCond %{DOCUMENT_ROOT} !-d
RewriteRule .* https://%1:81/gui/Forbidden403 [L,R]
RewriteCond %{HTTP_HOST} ^([^:]+)
RewriteRule ^/login/?$ https://%1:81/login [L,R]
That triggers on ^/login/?$, meaning the URL must *begin* with "/login"
and there may not be anything else after it.
So that means:
/login <-- will redirect to the GUI
/xlogin <-- causes a 404
/loginx <-- causes a 404
/xogin?xxx <-- causes a 404
/images/login <-- causes a 404
Based on that I can't see why /wp-admin/css/login.min.css would redirect
to the GUI.
On my end it doesn't either and instead it shows the CSS:
https://soloparaestudiantescuriosos.smd.net/wp-admin/css/login.min.css
That's a Wordpress on a 5211R.
Please check if you have a .htaccess that does redirects and also check
if your /etc/httpd/conf.d/ directory contains any files with "/login".
It *should* come up blank like this:
[root at 5211r ~]# egrep '/login' /etc/httpd/conf.d/*
grep: /etc/httpd/conf.d/subdomains: Is a directory
--
With best regards
Michael Stauber
More information about the Blueonyx
mailing list