Monday, November 4, 2013

Customize the 404 page for ArcGIS Server Map Services

ArcGIS Server 10 internal Tomcat web root:
       \ArcGIS\Server10.0\java\manager\web_output

ArcGIS Server 10 internal Tomcat conf:
       \ArcGIS\Server10.0\java\manager\service\managerappserver\conf

You may modify the web.xml by adding the error page definition:

        ...

        <welcome-file-list>
            <welcome-file>index.html</welcome-file>
            <welcome-file>index.htm</welcome-file>
            <welcome-file>index.jsp</welcome-file>
        </welcome-file-list>

        <error-page>
            <error-code>404</error-code>
            <location>/404.htm</location>
        </error-page>

    </web-app>

And the 404 error file can put in the root (/web_output)


CSP on Apache

To add CSP to root if sort of funny. The following will NOT work for most cases !!     <LocationMatch "^/$">        Header s...