Hi everybody,
 
I'm trying to remove the contextpath and the servlet name from the url
for ex. http://myserver/jahia/Jahia <http://myserver/jahia/Jahia/home> /home 
--> http://myserver/home
 
I followed the faq http://www.jahia.net/jahia/page589.html#4 and I was able to 
remove the /jahia context path.
 
Changing the servlet name from /Jahia to /cms also works(as described in the 
faq), although I did not find the property jahiaCoreHttpPath 
in my jahia.properties file.
 
The problem is I would like to remove the /Jahia servlet name completely and 
this is something that does not work yet.
If I execute a request, the browser seems to be waiting for a response, but 
Jahia does not return html.
 
Is there somebody that knows how to achieve this? Below are the changes I have 
done to my web.xml file(changes are in blue).
 
I'm running Jahia5.0.0
 
WEB.XML:
Servlet definition of the Jahia servlet:
        <init-param>
            <!-- This parameter specifies the default mapping pattern that
                 Jahia should use when generating URLs or detecting Jahia
                 content URLs. If you change anything to the mappings you
                 need to change this too.
            -->
            <param-name>defaultMappingPattern</param-name>
            <param-value>/</param-value>
        </init-param>
        <init-param>
            <!-- This parameter defines the default context path that will
                 be used to generate URLs
            -->
            <param-name>defaultContextPath</param-name>
            <param-value></param-value>
        </init-param>
        <init-param>
            <!-- This parameter defines the default servlet path that will
                 be used to generate URLs
            -->
            <param-name>defaultServletPath</param-name>
            <param-value></param-value>
        </init-param>
 
Servlet definition of JahiaConfigurationWizard
        <init-param>
            <param-name>content_servlet_path</param-name>
            <param-value>/</param-value>
        </init-param>
 
Servlet definition of JahiaAdministration servlet
        <init-param>
            <param-name>content_servlet_path</param-name>
            <param-value>/</param-value>
        </init-param>
 
Servlet mapping
    <!-- Standard Action Servlet Mapping -->
    <servlet-mapping>
        <servlet-name>Jahia</servlet-name>
        <url-pattern>/do/*</url-pattern>
    </servlet-mapping>
    <!-- begin: clip_builder-->
    <servlet-mapping>
        <servlet-name>Jahia</servlet-name>
        <url-pattern>*.do</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>Jahia</servlet-name>
        <url-pattern>*.clipping</url-pattern>
    </servlet-mapping>
    <!-- end: clip_builder-->
    <servlet-mapping>
        <servlet-name>Jahia</servlet-name>
        <url-pattern>/</url-pattern>
    </servlet-mapping>

Reply via email to