Changes for page Short URLs

Last modified by Daniel Turner on 2025/01/31

From version 18.1
edited by Jerome
on 2012/04/14
Change comment: Update web.xml with a mapping for resources
To version 19.1
edited by Jerome
on 2012/07/10
Change comment: Alternative method for skipping the servlet mapping name, by configuring the web front-end

Summary

Details

Page properties
Content
... ... @@ -70,6 +70,15 @@
70 70  
71 71  In Tomcat, the default servlet does not accept a parameter for changing the resource base, so you will need to write another default servlet.
72 72  
73 +Alternatively, you could by-pass the servlet container at the web front-end level. For example, if you are using Apache httpd as a front-end, and assuming and webapp deployed as a ROOT webapp and an AJP connection between httpd and the servlet container, the following configuration you allow to serve skin files and and static resources directly from httpd:
74 +
75 +{{code}}
76 + Alias /skins /usr/local/xwiki/skins
77 + Alias /resources /usr/local/xwiki/resources
78 + ProxyPass /skins/ !
79 + ProxyPass /resources/ !
80 +{{/code}}
81 +
73 73  The second thing to do, is to copy the mapping for the Struts servlet to also be activated for /, like:
74 74  
75 75  {{code language="xml"}}

Get Connected