[BlueOnyx:26792] Re: GUI on non-standard ports now possible
Juerg Sommer
jsommer at emailto.ch
Fri Mar 1 15:13:33 -05 2024
Hi Michael,
> The aliases are inserted in the dynamically generated Apache
> configuration by this script:
>
> /etc/httpd/conf.perl/00-default-vsite.pl
>
I'm not an expert with PerlConfigRequire, can you help me to find the error?
First I enabled $DEBUG to generate a /tmp/httpd.debug (tooks some time
until I remembered, httpd has PrivateTmp=true and the file is in a
subfolder...) There's the alias:
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]
RewriteCond %{HTTP_HOST} ^([^:]+)
RewriteRule ^/testxyz/?$ https://%1:81/login [L,R]
If I put same in site1.include it works. How can I check if the config
with perl-script is loaded? In the generated debug-file, DocumentRoot is
/var/www/html/ and SSL cert is also wrong, so I don't know if config is
really loaded. If I put in a syntax error near the aliases, apache
failed to start, so it seems at least to be parsed.
Have you an idea, how I can check if the config is imported successfully?
Best regards,
Juerg
More information about the Blueonyx
mailing list