Using find-pathinfo-forward
The
find-pathinfo-forward
parameter used in
obj.conf
can help improve your
performance. It is used with the
PathCheck
function
find-pathinfo
and the
NameTrans
functions
pfx2dir
and
assign-name
. The
find-pathinfo-forward
parameter instructs the
server to search forward for
PATH_INFO
in the path after
ntrans-base
, instead of backward
from the end of the path in the server function
find-pathinfo
.
Note –
The server ignores the
find-pathinfo-forward
parameter if the
ntrans-base
parameter
is not set in
rq->vars
when the server function
find-pathinfo
is called. By default,
ntrans-base
is set.
Example
NameTrans fn=
"
pfx2dir
"
find-pathinfo-forward=
""
from=
"
/cgi-bin
"
dir=
"
/export/home/cgi-bin
"
name=
"
cgi
"
NameTrans fn=
"
assign-name
"
from=
"
/perf
"
find-pathinfo-forward=
""
name=
"
perf
"
This feature can improve performance for certain URLs by doing fewer stats in the server
function
find-pathinfo
. On Windows, you can also use this feature to prevent the server from
changing
"
\\
"
to
"
/
"
when using the
PathCheck
server function
find-pathinfo
.
For more information about
obj.conf
, see the
Sun Java System Web Server 7.0 Update 1
Administrator’s Configuration File Reference
.
Using nostat
You can specify the parameter
nostat
in the
obj.conf NameTrans
function
assign-name
to
prevent the server from doing a stat on a specified URL whenever possible. Use the following
syntax:
nostat=virtual-path
Example
<Object name=default>
NameTrans fn=
"
assign-name
"
from=
"
/nsfc
"
nostat=
"
/nsfc
"
name=
"
nsfc
"
</Object>
<Object name=nsfc>
Service fn=service-nsfc-dump
</Object>
Using find-pathinfo-forward
Sun Java System Web Server 7.0 Update 1 Performance Tuning, Sizing, and Scaling Guide •
82
Summary of Contents for Sun Java System Web Server 7.0
Page 9: ...Figures FIGURE 2 1 Web Server Connection Handling 40 9 ...
Page 10: ...10 ...
Page 18: ...18 ...
Page 38: ...38 ...
Page 84: ...84 ...
Page 100: ...100 ...