Bug 39560 - Rewrite of / vs. VirtualHost
Rewrite of / vs. VirtualHost
Status: CLOSED DUPLICATE of bug 38807
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
UCS 4.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: Dirk Wiesenthal
Florian Best
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-10-15 15:33 CEST by Philipp Hahn
Modified: 2023-03-25 06:50 CET (History)
1 user (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2015-10-15 15:33:20 CEST
/etc/apache2/sites-enabled/000-default
         RedirectMatch ^/$ /ucs-overview/

gets applied to *all* VirtualHosts, which is undesired in certain cases.

Please wrap those statements inside a
<VirtualHost _default_>
        RedirectMatch ^/$ /ucs-overview/
</VirtualHost>

so a more specific <VirtualHost/>-block has a change to overwrite it.

See <https://httpd.apache.org/docs/2.2/vhosts/details.html> for the details of the priorities.
Comment 1 Florian Best univentionstaff 2015-10-15 15:49:38 CEST
yes, it is moving 1 simple line (in UCS 4.1) and should be part of Bug #38807.

*** This bug has been marked as a duplicate of bug 38807 ***
Comment 2 Florian Best univentionstaff 2015-11-02 18:47:31 CET
OK