document root difference btween 4.0.2 and 4.0.3
Hi All,
Does anyone know whether or not the document root has been changed from Sun Java System Web Proxy Server 4.0.2 to Sun Java System Web Proxy Server4.0.3. It may be changed obj.conf file. If I remember correctly, at 4.0.2, the HTTP request can be sent to Sun Java System Web Proxy Server 4.0.2.
Any advises would be appreciated.
Regards;
tash
Message was edited by:
tash
[420 byte] By [
tash] at [2007-11-26 11:29:41]

# 4
just change the
Service fn="deny-service"
in default object in obj.conf to
NameTrans fn="document-root" root="/tmp"
Service fn="send-file"
and put your document root instead of '/tmp'
|telnet agneyam 8080
Trying 129.158.224.203...
Connected to agneyam.india.sun.com.
Escape character is '^]'.
GET /index.html HTTP/1.0
HTTP/1.1 200 OK
Server: Sun-Java-System-Web-Proxy-Server/4.0
Date: Thu, 30 Nov 2006 10:33:21 GMT
Content-length: 5
Last-modified: Thu, 30 Nov 2006 10:33:04 GMT
Accept-ranges: bytes
Connection: close
If your client is not a brower, you can also do an options on a normal proxy to verify if the proxy is up. (and it is better to do this than to define a docuemnt root)
Trying 129.158.224.203...
Connected to agneyam.india.sun.com.
Escape character is '^]'.
OPTIONS / HTTP/1.0
HTTP/1.1 200 OK
Server: Sun-Java-System-Web-Proxy-Server/4.0
Date: Thu, 30 Nov 2006 10:31:04 GMT
Content-length: 0
Allow: HEAD, GET, PUT, POST, DELETE, TRACE, OPTIONS, MOVE, INDEX, MKDIR, RMDIR, CONNECT, PROPFIND, PROPPATCH, MKCOL, COPY, LOCK, UNLOCK
Connection: close