Friday May 15, 2009

web 6.1 SP11 64-bit download

If you need to use 64-bit web 6.1 SP11, you can download it at



https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_SMI-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=SJWS-6.1-SP11-OTH-G-F@CDS-CDS_SMI


This will allow you to use much more in memory address space.


e.g. for a 32-bit process, the theoretical max. memory per process = 4 GB,


a pmap will show,


vm40:/wlee/bits/tmp-web7.0u5> pmap 16908 | more
16908:  webservd -d /wlee/7.0u4/run/https-vm40.singapore.sun.com/config -r /wl
00010000       8K r-x--  /wlee/7.0u4/run/lib/webservd
00020000       8K rwx--  /wlee/7.0u4/run/lib/webservd
00022000      56K rwx--    [ heap ]
00030000    3904K rwx--    [ heap ]
00400000  167936K rwx--    [ heap ]
DB87A000       8K rwx-R    [ stack tid=285 ]


......(note the above address = 8 \* 4-byte each = 32-bit address)


but if we are running 64-bit, then the pmap will show,


vm40:/wlee> pmap 3799 | more
3799:   webservd -d /wlee/7.0u5-64/https-vm40.singapore.sun.com/config -r /wle
0000000100000000          8K r-x--  /wlee/7.0u5-64/lib/sparcv9/webservd
0000000100100000          8K rwx--  /wlee/7.0u5-64/lib/sparcv9/webservd
0000000100102000         56K rwx--    [ heap ]
0000000100110000       3008K rwx--    [ heap ]
0000000100400000     217088K rwx--    [ heap ]
FFFFFFFF3FCFA000          8K rw--R    [ stack tid=284 ]


......(note the above address = 16 \* 4-byte each = 64-bit address), so the theoretical max. memory per process = 16 TB, but of course limited by other factors, e.g. physical RAM and swap space, etc.


If you need more memory for your web server process (assume you do not have any memory leaks in your application, etc), then one option is to run 64-bit process.





Friday May 08, 2009

Web Server 6.1 SP11 is out now !

I just got the internal news that this latest version is released.


Download :


https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_SMI-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=SJWS-6.1-SP11-OTH-G-F@CDS-CDS_SMI


Release notes :


http://docs.sun.com/app/docs/doc/820-7659


Please try it out.

Wednesday Nov 05, 2008

How to log Host header in web 6.1SPx

If you need to see the incoming request Host header logged in the web server 6.1SPx logs, then you can try below:


add last one below in magnus.conf, i.e. %Req->headers.host%

Init fn="flex-init" access="$accesslog" format.access="%Ses->client.ip% - %Req->vars.auth-user% [%SYSDATE%] \\"%Req->reqpb.clf-request%\\" %Req->srvhdrs.clf-status% %Req->srvhdrs.content-length% %vsid%  %Req->headers.host% "


then it will log the host header of the incoming request, e.g.


apple:/export/home/iws6.1sp10> telnet localhost 60103
Trying 127.0.0.1...
Connected to localhost.
Escape character is '\^]'.
GET /banner.html HTTP/1.1
Host: dummytest  (note this)

HTTP/1.1 200 OK
Server: Sun-ONE-Web-Server/6.1
Date: Wed, 05 Nov 2008 10:45:37 GMT
Content-length: 1827
Content-type: text/html
Last-modified: Mon, 29 Sep 2008 08:37:07 GMT
Etag: "723-48e093b3"
Accept-ranges: bytes
...........


 The log will show,


127.0.0.1 - - [05/Nov/2008:18:45:37 +0800] "GET /banner.html HTTP/1.1" 200 1827 https-sess  dummytest

You can see the Host: dummytest  in the last column above.


See more at
http://docs.sun.com/app/docs/doc/820-1639/6nda10e4a?l=ja&a=view


e.g. add Req->headers.cookie.cookie_name for


Easy Cookie Logging

Friday May 23, 2008

Sun Java System Web Server 6.1 Service Pack 9 International Release

I tried the latest web 6.1 SP9 International Release.

You can download it at

Sun Download link

The installation is the same easy.
It will ask one more question about Default Language.

See ScreenDump118.gif  below for the choice of default language.


the choice of default language

I tried Traditional Chinese because I am in Hong Kong.

Then, everything works the same well in the installation and later startup.

The good results are now localized default pages and error responses, e.g.

See ScreenDump111.gif  below for the default home page after install

default home page in Chinese


See ScreenDump112.gif below for the localized Chinese NOT FOUND error responses after install

 localized Chinese NOT FOUND error responses


I opened the config files and found this below  in magnus.conf

DefaultLanguage zh_tw  

So, I experimented and tried to change it to

#DefaultLanguage zh_tw
DefaultLanguage ja

then I restarted the web server and hit a page which does not exist.

It will show me Japanese Not Found error responses.
See ScreenDump119.gif below  for the JA responses.

Japanese Not Found error responses

Hope this will add more local languages you need in your site.


Walter

Wednesday May 21, 2008

How to block certain file types from outside users in Sun Java System Web Server 6.1 SP9

If you want to block certain file types , e.g. some .ini or .conf files,  from outside access in Sun Java System Web Server 6.1 SP9, then you can add <Client> tag into obj.conf, e.g.

.....
NameTrans fn="document-root" root="$docroot"
<Client uri="\*.(ini|conf)">
PathCheck fn=deny-existence bong-file="<web install root>/docs/bongfile.html"
</Client>
PathCheck fn="unix-uri-clean"
....

and the bongfile is :

shell> cat bongfile.html
You cannot view this type of files here !!!

If you do not specify the "bong-file=" above, then the users will get the standard "Not Found" error in their browser.

e.g.

<Client uri="\*.(ini|conf)">
PathCheck fn=deny-existence
</Client>


then restart the web server and test, e.g.

http://<hostname.domain>/test.conf
 
or
 
http://<hostname.domain>/test.ini

will result in the response as set in bongfile.html to prevent users accessing these types of ini/conf files.

Errors logs:

[21/May/2008:14:38:03] security (10791): for host xx.xx.xx.xx trying to GET /test.conf, deny-existence reports: HTTP4129: denying existence of <web root>/docs/test.conf

[21/May/2008:14:41:12] security (10791): for host xx.xx.xx.xx trying to GET /test.ini, deny-existence reports: HTTP4129: denying existence of <web root>/docs/test.ini

This can add security to file types you do not want outside users accidentally access.
About

Wing-Yip Walter Lee

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today