Showing posts with label server. Show all posts
Showing posts with label server. Show all posts

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)


Saturday, April 28, 2012

Small HTTP servers for Windows

Some mini size HTTP server software for Windows:
For nginx, if you want to add an alias which point to another location which is not under the root directory, you can put the following in the nginx.conf:

location /web {
    alias   d:/Code/nginx_web;
}
        
This means for locations http://yourhost/web, it is pointing to d:\Code\nginx_web actually.


So what about ProxyPass in nginx? I will try on it tomorrow. Keep update soon.

Thursday, March 8, 2012

Change Windows Update Server URL

Modify the Windows Registry to change the WSUS URL:

\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\WUServer

Ref: http://technet.microsoft.com/en-us/library/cc708554(v=ws.10).aspx

CSP on Apache

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