Friday Sep 26, 2008

A good wiki site for Sun Java web server information

I found this site has a lot of good and useful information about Sun Java Web server.


See more at


http://wikis.sun.com/display/WebServer/Sun+Java+System+Web+Server


e.g. you can go to the FAQ at


http://wikis.sun.com/display/WebServer/FAQ


For example,  I just solved a customer problem with the entry about


    <If $headers{'user-agent'} =~ "foo">

See more at. 


http://wikis.sun.com/display/WebServer/faq_configuration#faq_configuration-10.GettinganerrorErrorevaluatingexpression%3AReferencetoundefinedvariable%22%24headers%5C%22ifweadd%3CIf%24headers%5C%3D%22foo%22%3Einobj.confinSunJavaSystemWebServer7.0.



 So, please take a look at this wiki site.


Tuesday Jul 29, 2008

Two Sun Alerts for Search in Sun Java Web server

There are two such Sun Alerts for XSS, one is for Search and the other is for Advanced Search.


 You can see Search like below:


search



and Advanced Search as follows:


Advanced Search


You can see the Sun Alerts at


http://sunsolve.sun.com/search/document.do?assetkey=1-66-231467-1


and


http://sunsolve.sun.com/search/document.do?assetkey=1-66-236481-1


The best is to upgrade to the latest SPs as listed in above Sun Alerts.


In case you cannot upgrade right now, and need to do the workarounds for now (then upgrade later), then please remember to do workarounds for BOTH Sun Alerts, e.g.


for Search,



4. Workaround



To work around the described issue, edit the default search web
application file named "index.jsp" which is located at
"<WS-install>/lib/webapps/search/index.jsp" to remove the line containing the text
"out.println(s);".



"


and for Advanced Search,


"


4. Workaround


The following file can be edited to workaround this issue:


<install
root>/bin/https/webapps/search/advanced.jsp

by removing the following lines:

<input type=hidden name="next"
value="<%=rquest.getParameter("next";)%>">

"out.println(s);"


"

 I saw some only do one, but not the other. So, try to write this here , so you know you need to do BOTH Sun Alerts.

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

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