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]
# 1
no, it has not changed, but out of curiosity, what are you using document root in the proxy for?
rahulnair at 2007-7-7 3:45:23 > top of Java-index,Web & Directory Servers,Web Servers...
# 2
On the other words, how would we define document root on 4.0.3?And there are the pbj.conf for some chaned from 4.0.2 to 4.0.3, what is the reason?rgeard,TashSue
TashSue at 2007-7-7 3:45:23 > top of Java-index,Web & Directory Servers,Web Servers...
# 3
This is becase just sanitary check from client in order to check the proxy alive from the server at certain time.Thanks,
TashSue at 2007-7-7 3:45:23 > top of Java-index,Web & Directory Servers,Web Servers...
# 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

rahulnair at 2007-7-7 3:45:23 > top of Java-index,Web & Directory Servers,Web Servers...