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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • 5.1
    • URLs
    • Unknown
    • N/A
    • N/A

    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

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

              Dates

                Created:
                Updated:
                Resolved: