Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-9455

Cannot remove the /bin/ part when configuring short URLs when using Apache ProxyPass

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 5.1
    • Fix Version/s: None
    • Component/s: URLs
    • Labels:
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      The following Apache configuration was used together with the settings for xwiki.cfg and web.xml on 3.1 and it was working (see platform.xwiki.org/xwiki/bin/view/Main/ShortURLs) but it does not work anymore on 4.5.4 and 5.1:

      Alias /skins /usr/local/xwiki/skins
      Alias /resources /usr/local/xwiki/resources
      
      RewriteEngine on
      
      RewriteRule     ^/+skins                -                                       [L]
      RewriteCond     %{REQUEST_URI}          !\.gwtrpc$
      RewriteRule     ^/+resources($|/.*)     -                                       [L]
      
      RewriteRule     .*                      http://localhost:8080%{REQUEST_URI}    [P,L]
      ProxyPassReverse        /               http://localhost:8080/
      

      So we used Rewrite mod to enable reverse proxying, instead of the conventional ProxyPass and it then worked on 4.5.4 and 5.1.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vmassol Vincent Massol
                Reporter:
                oana.tabaranu Elena-Oana Florea
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: