Example of obj.conf file using dynamic headers/footers

Just a quick query. I'm trying to use dynamic headers/footers and I've read
the notes on:
http://docs.iplanet.com/docs/manuals/enterprise/50/ag/essearch.htm#26999
I cant seem to get it to work. Could you send me an example of an obj.conf
file so I can get mine to work?
Many Thanks in Advance,
Mian Amar Ahmad

Thanks. I followed the guidance of the 3 links you provided. I thought what I coded in the obj.conf was working.
<If $uri =~ "^/dynamic/(.*)$">
NameTrans fn="restart" uri="/$1?$query"
</If>
But, I later found that this fails when the method is a GET and the query-string is null and when the method is a POST. I need all GETs and POSTs starting with "/dynamic" to have it stripped and "restarted". So, I modified my original config to make POSTs work. So now I have the following code:
<If $method eq "POST" and $uri =~ "^/dynamic/(.*)$">
NameTrans fn="restart" uri="/$1"
</If>
<If $method eq "GET" and $uri =~ "^/dynamic/(.*)$">
NameTrans fn="restart" uri="/$1?$query"
</If>
Now, I'm left with trying to get it working for GETs where the query-string is null. I'm not quite sure how to do this? Do you have any suggestions? It seems like the code is getting pretty crazy just to perform this functionality, Is there a simplier way that I am not seeing?

Similar Messages

  • $doc root Variable use in obj.conf file of iPlanet6 SP2

    Is there any way I can build expressions in obj.conf file using $docroot variable?
    I have the following configured in the obj.conf now:
    <<Object name="default">
    NameTrans fn="NSServletNameTrans" name="servlet"
    NameTrans fn="pfx2dir" from="/servlet" dir="/home/ns6.0SP2/https-site/docs/servlet" name="ServletByExt"
    NameTrans fn="pfx2dir" from="/mc-icons" dir="/home/ns6.0SP2/ns-icons" name="es-internal"
    NameTrans fn="pfx2dir" from="/cgi-bin" dir="/home/ns-home/https-site/cgi-bin" name="cgi"
    NameTrans fn="pfx2dir" from="/manual" dir="/home/ns6.0SP2/manual/https" name="es-internal"
    NameTrans fn="document-root" root="$docroot"
    </Object>
    I would like to have something like this:
    <Object name="default">
    NameTrans fn="NSServletNameTrans" name="servlet"
    NameTrans fn="pfx2dir" from="/servlet" dir="$docroot/servlet" name="ServletByExt"
    NameTrans fn="pfx2dir" from="/mc-icons" dir="/home/ns6.0SP2/ns-icons" name="es-internal"
    NameTrans fn="pfx2dir" from="/cgi-bin" dir="$docroot/../cgi-bin" name="cgi"
    NameTrans fn="pfx2dir" from="/manual" dir="/home/ns6.0SP2/manual/https" name="es-internal"
    NameTrans fn="document-root" root="$docroot"
    </Object>
    I have tried the code above but unfortunatelly it does not work - I get "Not Found
    The requested object does not exist on this server." error.
    I need this to specify different $docroot-s for different URLs but keep the same default object for all of them.
    Is there any other way to implement this?
    Thank you very much for your cooperation!
    Sasha

    Yes, this technique does work.
    However, in your example, the NameTrans fn="pfx2dir" from="/cgi-bin" directive will probably not work as you expect. This is because the PathTrans fn="unix-uri-clean" directive (which is written to all obj.conf files iWS creates) will reject all paths that contain "..". For more information on the unix-uri-clean SAF, refer to the NSAPI Programmer's Guide at http://docs.iplanet.com/docs/manuals/enterprise/50/nsapi/03_direc.htm#18613

  • Issue in iPlanet loading obj.conf file in admin console module

    Dear all,
    I have done following chanegs in obj.conf file to block insecure http methods,but whenever I try to access admin module of iPlanet and restart, all manual changes done in obj.conf disappears.
    Only one time it asked me with message that file has been modified manually do you want to load?
    but this is not happening every time.I am using iplanet 9.
    Please let me know if there is any issue with this or I am missing something.
    to just brief, only after trying 20 times it asked me above mentioned message
    ---obj.conf file contents----
    <Object name="WebCon1" ppath="*/WebCon/*">
    *<Client method="(GET|POST)">*
    AuthTrans fn="match-browser" browser="MSIE*" ssl-unclean-shutdown="true"*
    *</Client>*
    *<Client method="(HEAD|PUT|TRACE|TRACK|SEARCH|INDEX|OPTIONS|DELETE|MKDIR|SHOWMETHOD|UNLINK|CHECKIN|TEXTSEARCH|SPACEJUMP|CONNECT|PATCH|PROPFIND|PROPPATCH|MKCOL|COPY|MOVE|LOCK|UNLOCK|CHECKOUT|RMDIR|ACL|VERSION-CONTROL|REPORT|UNCHECKOUT|ORDERPATCH)">*
    *AuthTrans fn="set-variable" remove-headers="transfer-encoding" set-headers="content-length: -1" error="405"*
    *</Client>*
    NameTrans fn="pfx2dir" from="/mc-icons" dir="/home/cedera/iPlanetServer/Installation/ns-icons" name="es-internal"
    PathCheck fn="unix-uri-clean"
    PathCheck fn="find-pathinfo"
    ObjectType fn="type-by-extension"
    ObjectType fn="force-type" type="text/plain"
    Service method="(GET|POST)" type="image/gif" fn="send-file"
    Service method="(GET|POST)" type="image/jpeg" fn="send-file"
    Service method="(GET|POST)" type="text/css" fn="send-file"
    Service method="(GET|POST)" type="application/x-javascript" fn="send-file"
    Service method="(GET|POST)" type="magnus-internal/imagemap" fn="imagemap"
    Service method="(GET|POST)" type="magnus-internal/directory" fn="send-error" path="/WebCon/WebCon/restrict.htm"
    Service method="(GET|POST)" fn="wl_proxy" WebLogicHost="10.10.61.224" WebLogicPort="444" HungServerRecoverSecs="600" Debug="ALL" DebugConfigInfo="TRUE" RequireSSLHostMatch="FALSE" WLLogFile="/home/cedera/iPlanetServer/Installation/https-webcon2/logs/Log_JSP.txt" PathTrim="/WebCon" PathPrepend="/WebConverter" SecureProxy="ON" URIContainsSpace="true" ErrorPage="/home/cedera/iPlanetServer/Installation/docs/WebCon/WebCon/serviceUnavailable.htm" MaxPostSize="-1" DefaultFileName="WebCon/login.jsp" ConnectTimeoutSecs="10" ConnectRetrySecs="2" WLDNSRefreshInterval="0" TrustedCAFile="/home/cedera/iPlanetServer/Installation/https-webcon2/config/trustedcafile.pem"
    AddLog fn="flex-log" name="access"
    </Object>
    I have added contents marked in bold manually....
    but it was not picking up it from frontend...then suddenly after 20 time, it picked up these changes in admin...
    but now if I am trying to change in <client> tag , but it does not recognise any new changes done manually...it loads same obj.conf...whenever i restart instance from frontend...
    Edited by: sweetvish on Nov 9, 2009 9:26 PM

    After making manual changes in obj.conf, have you tried clicking the 'Apply' link in admin console and then choosing 'Load configuration Changes' option?

  • Nsapi in cluster (obj.conf file conflict)

    Hi,
              I running WLS5.1.0 SP5 on Sun 5.7 Solaris v2.7, with IPlanet4.0SP1,
              running with the plugin...
              When I am on non-cluster environment, everything is just fine, but on
              cluster, IPlanet is starting, but I can not see anything on the browser
              (page cannot be displayed), I have attached my obj.conf file. Please let
              me know ASAP what I am doing wrong...
              Regards
              GOD BLESS
              Chris
              ## ------------- BEGIN SAMPLE OBJ.CONF CONFIGURATION ---------
              # (no cluster)
              # The following line locates the NSAPI library for loading at
              # startup, and identifies which functions within the library are
              # NSAPI functions. Verify the path to the library (the value
              # of the shlib=<...> parameter) and that the file is
              # readable, or the server will fail to start.
              Init fn="load-modules" funcs="wl-proxy,wl-init"\
              shlib=/usr/netscape/server4/bin/https/lib/libproxy.so
              Init fn="wl-init"
              # Configure which types of HTTP requests should be handled by the
              # NSAPI module (and, in turn, by WebLogic). This is done
              # with one or more "<Object>" tags as shown below.
              # Here we configure the NSAPI module to pass requests for
              # "/weblogic" to a WebLogic Server listening at port 7011 on
              # the host ags-dtcXXXX.agsolutions.co.uk that is your localhost (e.g:
              ags-dtc1724) .
              <Object name="weblogic" ppath="*/weblogic/*">
              Service fn=wl-proxy WebLogicCluster="10.0.4.13:7011,10.0.4.14:7011"\
              PathTrim="/weblogic"
              </Object>
              # NSAPI's configuration to pass request for any file begining with
              # "WLS" to weblogic server on port 7011.
              <Object name="eutility" ppath="*WLS*">
              Service fn=wl-proxy WebLogicCluster="10.0.4.13:7011,10.0.4.14:7011"
              PathTrim="/EUtility"
              </Object>
              # NSAPI's configuration to pass request for any file begining with
              # "wls" to weblogic server on port 7011.
              <Object name="eutility1" ppath="*wls*">
              Service fn=wl-proxy WebLogicCluster="10.0.4.13:7011,10.0.4.14:7011"
              PathTrim="/EUtility"
              </Object>
              # Here we configure the plug-in so that requests that
              # match "/servletimages/" will be handled by the
              # plug-in/WebLogic.
              <Object name="si" ppath="*/servletimages/*">
              Service fn=wl-proxy WebLogicCluster="10.0.4.13:7011,10.0.4.14:7011"
              </Object>
              # This Object directive works by file extension rather than
              # request path. To use this configuration, you must also add
              # a line to the mime.types file:
              # type=text/jsp exts=jsp
              # This configuration means that any file with the extension
              # ".jsp" will be proxied to WebLogic. Then you must add the
              # Service line for this extension to the Object "default",
              # which should already exist in your obj.conf file:
              <Object name=default>
              NameTrans fn=pfx2dir from=/ns-icons\
              dir="/usr/Netscape/Server4/ns-icons"
              NameTrans fn=pfx2dir from=/mc-icons\
              dir="/usr/Netscape/Server4/ns-icons"
              NameTrans fn="pfx2dir" from="/help" dir=\
              "/usr/netscape/server4/manual/https/ug"
              NameTrans fn=document-root root="/usr/eutilweb"
              Service method="(GET|HEAD|POST|PUT)" type=text/jsp fn=wl-proxy\
              WebLogicCluster="10.0.4.13:7011,10.0.4.14:7011 PathPrepend=/jspfiles
              PathCheck fn=unix-uri-clean
              PathCheck fn="check-acl" acl="default"
              PathCheck fn=find-pathinfo
              PathCheck fn=find-index
              index-names="index.html,index.htm,wls.htm,wls.html,home.html"
              ObjectType fn=type-by-extension
              ObjectType fn=force-type type=text/plain
              Service method=(GET|HEAD) type=magnus-internal/imagemap fn=imagemap
              Service method=(GET|HEAD) \
              type=magnus-internal/directory fn=index-common
              Service method=(GET|HEAD) type=*~magnus-internal/* fn=send-file
              AddLog fn=flex-log name="access"
              </Object>
              # The following directive enables HTTP-tunneling of the
              # WebLogic protocol through the NSAPI plug-in.
              <Object name="tunnel" ppath="*/HTTPClnt*">
              Service fn=wl-proxy WebLogicCluster="10.0.4.13:7011,10.0.4.14:7011"
              </Object>
              ## ------------- END SAMPLE OBJ.CONF CONFIGURATION ---------
              [att1.html]
              

              Since IPlanet is started ( as per your email) , are you able to access
              index.html page?
              If yes, add the following debug flag in obj.conf and point your browser
              to
              http://[NES-host]:[port]/weblogic/index.html?__WebLogicBridgeConfig (2
              under scores)
              <Object name="weblogic" ppath="*/weblogic/*">
              Service fn=wl-proxy WebLogicCluster="10.0.4.13:7011,10.0.4.14:7011"
              PathTrim="/weblogic" DebugConfigInfo="ON"
              </Object>
              Does the screen shot shows primary & secondary server info?
              what's the build date/time on it?
              PS: Also make sure there aren't any extra spaces in it.. Sometimes NES
              is very much picky..
              Kumar
              starssoul wrote:
              > Hi,
              >
              > I running WLS5.1.0 SP5 on Sun 5.7 Solaris v2.7, with IPlanet4.0SP1,
              > running with the plugin...
              > When I am on non-cluster environment, everything is just fine, but on
              > cluster, IPlanet is starting, but I can not see anything on the
              > browser
              > (page cannot be displayed), I have attached my obj.conf file. Please
              > let me know ASAP what I am doing wrong...
              > Regards
              >
              > GOD BLESS
              > Chris
              >
              >
              >
              >
              > Init fn="load-modules" funcs="wl-proxy,wl-init"\
              > shlib=/usr/netscape/server4/bin/https/lib/libproxy.so
              > Init fn="wl-init"
              >
              > <Object name="weblogic" ppath="*/weblogic/*">
              > Service fn=wl-proxy WebLogicCluster="10.0.4.13:7011,10.0.4.14:7011"\
              > PathTrim="/weblogic"
              > </Object>
              >
              >
              > ## ------------- END SAMPLE OBJ.CONF CONFIGURATION ---------
              [att1.html]
              

  • Managing recorded files using dynamic page.

    Hi all,
    I have an app that record the user's voice, each time in one
    different file
    adding an index to the end of the file name.
    rec_tom1.flv, rec_tom2.flv....
    I'm having some problems trying to recover this names
    I need to know if it's possible list this recorded files
    using a dynamic
    page. I have a web host at host A that will have an asp page
    pointing to my
    FMS host B, this page will list the flies and return it to my
    flash app,
    then I 'll load this in a list box.
    in the dynamic page at some point I'll need the PATH to the
    FMS server....
    this is where thigns fail....
    I've tried to point using as path the "rtmp + account name"
    without success.
    So, I need to know if first this is possible, then if so, try
    to figure out
    the correct path to it.
    best
    rodrigo.

    Central comes with predefined tasks PGCNTGET and PGCNTSET (see below). Create a job that includes both thses JFMERGE steps. PGCNTGET will run through the job, count pages and direct output to -zNUL. PGCNTSET will run through the job again and this time have the number of pages stored in variable @pagecount and direct the output to -z@PhysicalDev
    If you create a data field PAGES on your template you can pass this into the field:
    ^GLOBAL PAGES
    Page @$PAGE. of @PAGECOUNT
    Tasks:
    PGCNTGET "@MDFName." "@InFile." -l -apr"@PreambleName." -all"@LogFileName." -asl@SkipLines -amq@ManagedMem -ams"@MSTName." -m@Macro#.@LoadFlag -z"@PhysicalDev." @PrintDirectorParms. @OtherJobTokens. -aii"@IniFileName."
    PGCNTSET "@MDFName." "@InFile." -l -apr"@PreambleName." -all"@LogFileName." -asl@SkipLines -amq@ManagedMem -ams"@MSTName." -m@Macro#.@LoadFlag -z"@PhysicalDev." @PrintDirectorParms. @OtherJobTokens. -aii"@IniFileName." -advglobal:pagecount=@NumberPages.

  • Spool SQl data into text file using dynamic sql

    Hi,
    I am spooling output data into text file using command
    select 'select t.mxname,bo.lxtype,t.mxrev'||chr(10)||'from mx_1234567'||chr(10)||
    'where <condition>';
    here mxname varchar(128),lxtype(128),mxrev(128) all are of varchar type.I want the output in format
    e.g Part|1211121313|A
    but due to column width the output,I am getting is with spaces.
    "Part then blank spaces |1211121313 then blank spaces |A"
    how can I remove these spaces between columns.I used set space 0 but not working.
    Thanks in advance.
    Your help will be appreciated.

    Hi Frank,
    I have seen your reply for SET LINE SIZE function. But, I could not be able to understand it.
    I am facing similar kind of issue in my present project.
    I am trying spool more than 50 columns from a table into flat file. Because of more column lengths in few columns, i am getting space. There are so many columns with the same issue. I want to remove that space.so that, data can fit perfectly in one line in .txt file without any wrap text.
    Below is my sample query.sql. Please let me know the syntax. My mail id : [email protected]
    --Created : Sep 22,2008, Created By : Srinivasa Bojja
    --Export all Fulfillments
    --Scheduled daily after 1:00am and should complete before 3:30am
    WHENEVER SQLERROR EXIT SQL.SQLCODE
    SET LINESIZE 800
    SET WRAP OFF
    SET PAGESIZE 800
    SET FEEDBACK OFF
    SET HEADING ON
    SET ECHO OFF
    SET CONCAT OFF
    SET COLSEP '|'
    SET UNDERLINE OFF
    SPOOL C:\Fulfillment.txt;
    SELECT SRV.COMM_METHOD_CD AS Method,
    SRV.SR_NUM AS "Fulfillment Row_Id",
    CON.LAST_NAME AS "Filled By"
    SRV.SR_TITLE AS Notes,
    SRVXM.ATTRIB_04 AS "Form Description"
    FROM SIEBEL.S_SRV_REQ SRV,
    SIEBEL.S_SRV_REQ_XM SRVXM,
    SIEBEL.S_USER USR,
    SIEBEL.S_CONTACT CON
    WHERE SRV.ROW_ID = SRVXM.PAR_ROW_ID AND
    SRV.OWNER_EMP_ID = USR.ROW_ID AND
    CON.ROW_ID= SRV.CST_CON_ID;
    SPOOL OFF;
    EXIT;

  • Proxy to file using dynamic configuration

    Hi Frnds,
    I  have a scenario ABAP_Proxy-XI-File, here in the proxy I am getting a pdf file with xml as attachment now I need to save the pdf file to the target folder with the name availble in one of the fields of attached xml file.
    I have used Adapter specific attributes option for filename substitution but getting the follwoing error:
    Attempt to process file failed with com.sap.aii.adapter.file.configuration.DynamicConfigurationException: The Adapter Message Property 'FileName' was configured as mandatory element, but there is no 'DynamicConfiguration' element in the XI Message header
    Please anyone can help me in overcoming this issue.
    Regards
    shiva

    U have a limitation here. At XI u can read only 1 file (pdf or xml). Bcoz receiver file adapter will not support attachment. pdf is required bcoz u need to transfer it to receiver. Xml is also required bcoz the directory name is inside that xml
    The workaround could be creating an adpater module that passes the directory name as well. U should send pdf file with xml as attachment.
    If u have the dir name, then the dynamic configuration code should be like this
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","Directory");
    conf.put(key,MappedDirectoryName);
    This MappedDirectoryName should be the name passed through payload. The receiver file communiation channel must have dummy dir name
    Regards,
    Prateek

  • Configuring wl-proxy for iPlanet obj.conf

    Can you please email me a sample iPlanet obj.conf with Weblogic proxy(by file extension) plug-in setting to also inclulde Debug="ON" and ConnectTimeoutSec=20 parameters?
              

    The Debug option was added in a fairly recent service pack so make sure you are using the plugin from Service
              Pack 8 (I am assuming WLS 5.1 here...).
              As for Netscape, try putting all of the parameters on one line (with no line continuation characters and no
              white space in the cluster list). Netscape, especially on NT is very sensitive to how the obj.conf file is
              formatted. Try the one attached.
              Hope this helps,
              Robert
              Ganapur Srinivas wrote:
              > Hello,
              >
              > Following is the contents of the obj.conf file, which we are using to set up the
              > iPlanet for clustered environment of Weblogic. With the below settings we are able
              > to access the JSP files, but not able to pass the Servlet request via the Proxy plug-in.
              > Also the Debug=ON option is not working properly. Of the two machines the request
              > is going to only one machine, if that particular machine is not on the net, the request
              > is not directed to the live machine which has weblogic instance running.
              >
              > If somebody already running Weblogic clustering successfully please let us know if
              > the following settings are okay in obj.conf:
              >
              > ====================START of obj.conf
              > # Sun Netscape Alliance - obj.conf
              > # You can edit this file, but comments and formatting changes
              > # might be lost when the admin server makes changes.
              >
              > # Use only forward slashes in pathnames--backslashes can cause
              > # problems. See the documentation for more information.
              >
              > Init fn="load-modules" funcs="wl-proxy,wl-init"\
              > shlib=C:/Netscape/Server4/https-MyMachine/proxy36.dll
              > Init fn="wl-init"
              >
              > Init fn="flex-init" access="C:/Netscape/Server4/https-MyMachine/logs/access" format.access="%Ses->client.ip%
              > - %Req->vars.auth-user% [%SYSDATE%] \"%Req->reqpb.clf-request%\" %Req->srvhdrs.clf-status%
              > %Req->srvhdrs.content-length%"
              > Init fn="load-types" mime-types="mime.types"
              > Init disable="yes" fn="dns-cache-init"
              >
              > <Object name="default">
              > NameTrans fn="pfx2dir" from="/ns-icons" dir="C:/Netscape/Server4/ns-icons" name="es-internal"
              > NameTrans fn="pfx2dir" from="/mc-icons" dir="C:/Netscape/Server4/ns-icons" name="es-internal"
              > NameTrans fn="pfx2dir" from="/help" dir="C:/Netscape/Server4/manual/https/ug" name="es-internal"
              > NameTrans fn="pfx2dir" from="/manual" dir="C:/Netscape/Server4/manual/https" name="es-internal"
              > NameTrans fn="document-root" root="D:/Webserver/examples"
              > Service method="(GET|HEAD|POST|PUT)" type=text/jsp fn=wl-proxy\
              > WebLogicCluster="10.236.130.48:7001, 10.236.130.47:7001"
              > ErrorPage="d:/Netscape/Server4/https-MyMachine/MyErrorpage.htm"
              > Debug=ON
              > PathCheck fn="nt-uri-clean"
              > PathCheck fn="check-acl" acl="default"
              > PathCheck fn="find-pathinfo"
              > PathCheck fn="find-index" index-names="index.html"
              > ObjectType fn="type-by-extension"
              > ObjectType fn="force-type" type="text/plain"
              > Service method="(GET|HEAD)" type="magnus-internal/imagemap" fn="imagemap"
              > Service method="(GET|HEAD)" type="magnus-internal/directory" fn="index-simple"
              > Service method="(GET|HEAD|POST)" type="*~magnus-internal/*" fn="send-file"
              > AddLog fn="flex-log" name="access"
              > </Object>
              >
              > <Object name="weblogic" ppath="*/weblogic/*">
              > Service fn=wl-proxy WebLogicCluster="10.236.130.48:7001, 10.236.130.47:7001" PathTrim="/weblogic"
              > </Object>
              >
              > <Object name="cgi">
              > ObjectType fn="force-type" type="magnus-internal/cgi"
              > Service fn="send-cgi"
              > </Object>
              >
              > <Object name="es-internal">
              > PathCheck fn="check-acl" acl="es-internal"
              > </Object>
              >
              > ====================END of obj.conf
              >
              > sam nemati <[email protected]> wrote:
              > >Can you please email me a sample iPlanet obj.conf with Weblogic proxy(by file extension)
              > plug-in setting to also inclulde Debug="ON" and ConnectTimeoutSec=20 parameters?
              # Sun Netscape Alliance - obj.conf
              # You can edit this file, but comments and formatting changes
              # might be lost when the admin server makes changes.
              # Use only forward slashes in pathnames--backslashes can cause
              # problems. See the documentation for more information.
              Init fn="load-modules" funcs="wl-proxy,wl-init" shlib="C:/Netscape/Server4/https-MyMachine/proxy36.dll"
              Init fn="wl-init"
              Init fn="flex-init" access="C:/Netscape/Server4/https-MyMachine/logs/access" format.access="%Ses->client.ip% - %Req->vars.auth-user% [%SYSDATE%] \"%Req->reqpb.clf-request%\" %Req->srvhdrs.clf-status% %Req->srvhdrs.content-length%"
              Init fn="load-types" mime-types="mime.types"
              Init disable="yes" fn="dns-cache-init"
              <Object name="default">
              NameTrans fn="pfx2dir" from="/ns-icons" dir="C:/Netscape/Server4/ns-icons" name="es-internal"
              NameTrans fn="pfx2dir" from="/mc-icons" dir="C:/Netscape/Server4/ns-icons" name="es-internal"
              NameTrans fn="pfx2dir" from="/help" dir="C:/Netscape/Server4/manual/https/ug" name="es-internal"
              NameTrans fn="pfx2dir" from="/manual" dir="C:/Netscape/Server4/manual/https" name="es-internal"
              NameTrans fn="document-root" root="D:/Webserver/examples"
              Service method="(GET|HEAD|POST|PUT)" type=text/jsp fn=wl-proxy WebLogicCluster="10.236.130.48:7001,10.236.130.47:7001" ErrorPage="d:/Netscape/Server4/https-MyMachine/MyErrorpage.htm" Debug=ON
              PathCheck fn="nt-uri-clean"
              PathCheck fn="check-acl" acl="default"
              PathCheck fn="find-pathinfo"
              PathCheck fn="find-index" index-names="index.html"
              ObjectType fn="type-by-extension"
              ObjectType fn="force-type" type="text/plain"
              Service method="(GET|HEAD)" type="magnus-internal/imagemap" fn="imagemap"
              Service method="(GET|HEAD)" type="magnus-internal/directory" fn="index-simple"
              Service method="(GET|HEAD|POST)" type="*~magnus-internal/*" fn="send-file"
              AddLog fn="flex-log" name="access"
              </Object>
              <Object name="weblogic" ppath="*/weblogic/*">
              Service fn=wl-proxy WebLogicCluster="10.236.130.48:7001,10.236.130.47:7001" PathTrim="/weblogic"
              </Object>
              <Object name="cgi">
              ObjectType fn="force-type" type="magnus-internal/cgi" Service fn="send-cgi"
              </Object>
              <Object name="es-internal">
              PathCheck fn="check-acl" acl="es-internal"
              </Object>
              

  • Looking to reference files using something other than PHP includes

    Hello -
    Aside from using PHP includes, what would be another technology that I can use that allows me to use HTML file extensions, that if I make a change to a file in one location (assets/dirname/filename), it updates dependant pages?  It's got a be Linux server friendly, and no templates or CMS stuff.
    ~Mike

    No problem Mike,
    Shouldn't matter if the pages are static or dynamic for includes to be useful. Some of the most common uses are headers, footers and menus for sites that have many pages, static, synamic or both.
    For example; if you have a phone number in your footer and have 100 pages, it would be crazy to change 100 pages. Just change one small file and upload and your done.
    Stick with the includes, you'll be glad you did
    Brad Lawryk
    Adobe Community Expert, Dreamweaver
    Adobe Usergroup Manager, Northern British Columbia Adobe User Group

  • Reference DOCUMENT_ROOT in obj.conf

    In server.xml <document-root> is specified for each virtual server. How do I reference this value later in obj.conf file?
    Here is the idea. I need a multiple virtual servers to share a common obj.conf file, and I want to easily add new virtual servers with minimal server.xml editing. (This minimal edit would be to add <object-file> line). Then in obj.conf I need to reference the document root for current virtual server. Specifically, I need to check the requested URI for existence like this:
    <If $uri =~ '^/(.*)$' and !(-f"$docroot/$1")>
    So how do I place <document-root> from server.xml into that $docroot variable? Would be great if this variable was predefined, but it is not.

    Thank you for your help, I use SJSWS update 4, but I sure will upgrade.
    As for configuration, I need to do the opposite thing. Once again.
    I don't want all virtual servers to use the same document root. I want each one to have it's own document root. To make the creation of new virtual servers as quick as possible I need it to happen like this:
    1. I add a virtual server with Admin Console (web interface). I specify document root with this interface.
    2. I force it to use my-obj.conf by editing server.xml manually and adding <object-file> directive.
    3. Deploy the configuration.
    That is all. No other configuration steps should be performed.
    Now the problem follows. my-obj.conf needs to know the document root of whatever virtual server it is invoked this time, and document root needs to be stored in some variable so something (file system path, exactly) could be tested against it. Recall the line:
    <If $uri =~ '^/(.*)$' and !(-f"$docroot/$1")>
    When the server runs through my-obj.conf, it sure knows the document root since it is set in <document-root> directory which Admin Console creates automatically in server.xml.
    So it would be great if there was a predefined variable $docroot which I could use in my-obj.conf. I can see from the list you provided that there is no such a variable. I know that I could define one by adding <variable> directive to server.xml, but it's redundant, and I want to keep the creation of a virtual server as simple as possible.
    I also tried to refer to $env{'DOCUMENT_ROOT'} in my-obj.conf, somehow it happens to be not defined, while the documentation states that $env includes CGI variables (is it fixed in recent iPlanet?)
    So my last chance: is there a SAF that would put document root into a variable so it can be read?
    The predefined variables really lack for documentation. What members do $env, $reqpb and rq have? Could not find it anywhere.

  • Obj.conf.template ignored?

    Using SJSWS 6.1sp2...
    I have made some customizations to obj.conf.template file in $SERVER_ROOT/bin/https/install/misc, but the instance creation process in the admin server seems to ignore this. I confirmed that this occurs on SJSWS 6.1sp1 as well. Any hints?
    -chris

    sorry for the late reply:
    Basics of Server Operation in Sun ONE Application Server 7 Administrator's Configuration File Reference document. The obj.conf section mentions:
    "The file named obj.conf that lacks a prefix is a template that Sun ONE Application Server uses to create obj.conf files for each virtual server. Editing this file does not affect any existing virtual servers, but does affect any subsequently created virtual servers."
    thanks,
    V.

  • Iplanet 6.0 sp1 plugin - libproxy.so init failure in obj.conf

    hello all -
    iPlanet 6.0, service pack 1 (weblogic plugin desired)
    Solaris 2.8 with latest patchset (including patch 109234-09)
    JDK 1.3.1-04 ... weblogic 5.1, service pack 11
    These simple lines in obj.conf consistently fail :
    Init fn="load-modules" funcs="wl-proxy,wl-init"\
    shlib=/export/home/iplanet60/plugins/lib/libproxy.so
    Init fn="wl-init"
    .. iplanet "errors" log shows these errors when these lines are included :
    complains about server.xml (points back to these lines) .. "line 32, column 15:
    Error processing obj.conf line 3 : init functions are not allowed in the objset"
    . if I pull these lines .. http server starts fine.
    Started to research solaris patches - 109234-09 is installed - this is of interest
    as it contains libproxy.so for apache - tried loading that in but cannot load
    in that file as WLS plugin.
    libproxy.so : definately chmod 777 .. definately in right path.
    any thoughts on what my problem could be?
    thx JR.

    hello all -
    I solved this problem quite easily.
    The BEA docs suggest to put the 'Init fn' calls in the obj.conf file. I found
    if I do not do this but place the calls to 'Init fn' (only) in magnus.conf - all
    works fine. I had repeated failures to start the http server while these 'Init
    fn' calls resided in the obj.conf file.
    On a side note, the solaris patchset supplied libproxy.so is an apache ref file
    and should not be used. I just copied the normal libproxy.so from $WLHOME/lib/solaris.
    Hope this helps someone. JR
    "John Russell" <[email protected]> wrote:
    >
    hello all -
    iPlanet 6.0, service pack 1 (weblogic plugin desired)
    Solaris 2.8 with latest patchset (including patch 109234-09)
    JDK 1.3.1-04 ... weblogic 5.1, service pack 11
    These simple lines in obj.conf consistently fail :
    Init fn="load-modules" funcs="wl-proxy,wl-init"\
    shlib=/export/home/iplanet60/plugins/lib/libproxy.so
    Init fn="wl-init"
    ... iplanet "errors" log shows these errors when these lines are included
    complains about server.xml (points back to these lines) .. "line 32,
    column 15:
    Error processing obj.conf line 3 : init functions are not allowed in
    the objset"
    .. if I pull these lines .. http server starts fine.
    Started to research solaris patches - 109234-09 is installed - this
    is of interest
    as it contains libproxy.so for apache - tried loading that in but cannot
    load
    in that file as WLS plugin.
    libproxy.so : definately chmod 777 .. definately in right path.
    any thoughts on what my problem could be?
    thx JR.

  • How can I get URL forwarding working without touching the obj.conf

    It won't work right after it is set up from the Admin server. I have to manually edit the obj.conf so that the [NameTrans fn="redirect"] lines are ahead of any other lines NameTrans lines. Why the Admin server cannot do this when adding the "redirect" lines to obj.conf, or did I miss anything when I config the URL forwarding?
    SunOne WebServer6.1 SP4

    This is a full copy of the obj.conf file, right after I set up a URL Forwarding. The URL Forwarding is added as the 3rd [NameTrans] line. I have to manually move it as the 1st [AuthTrans] line, else it won't work.
    # You can edit this file, but comments and formatting changes
    # might be lost when the admin server makes changes.
    # Use only forward slashes in pathnames--backslashes can cause
    # problems. See the documentation for more information.
    <Object name="default">
    AuthTrans fn="match-browser" browser="*MSIE*" ssl-unclean-shutdown="true"
    NameTrans fn="ntrans-j2ee" name="j2ee"
    NameTrans fn="pfx2dir" from="/mc-icons" dir="c:/Sun/WebServer6.1/ns-icons" name="es-internal"
    NameTrans fn="redirect" from="/AuxFiles" url-prefix="http://pdiweb.pdi.sci.com:8080/AuxFiles"
    NameTrans fn="document-root" root="$docroot"
    PathCheck fn="nt-uri-clean"
    PathCheck fn="check-acl" acl="default"
    PathCheck fn="find-pathinfo"
    PathCheck fn="find-index" index-names="index.html,home.html,index.jsp"
    PathCheck fn="set-cache-control" control="private"
    ObjectType fn="type-by-extension"
    ObjectType fn="force-type" type="text/plain"
    Service method="(GET|HEAD)" type="magnus-internal/imagemap" fn="imagemap"
    Service method="(GET|HEAD)" type="magnus-internal/directory" fn="index-common"
    Service method="(GET|HEAD|POST)" type="*~magnus-internal/*" fn="send-file"
    Service method="TRACE" fn="service-trace"
    Error fn="error-j2ee"
    AddLog fn="flex-log" name="access"
    </Object>
    <Object name="j2ee">
    Service fn="service-j2ee" method="*"
    </Object>
    <Object name="cgi">
    ObjectType fn="force-type" type="magnus-internal/cgi"
    Service fn="send-cgi"
    </Object>
    <Object name="es-internal">
    PathCheck fn="check-acl" acl="es-internal"
    </Object>
    <Object name="send-compressed">
    PathCheck fn="find-compressed"
    </Object>
    <Object name="compress-on-demand">
    Output fn="insert-filter" filter="http-compression"
    </Object>

  • Editting the obj.conf of netscape enterprise server 3.6 to map two".so"

    I have netscape enterprise server 3.6 (I know.. but cant go another option now)
    I already have a application running on this server which is accessed by "www.abc.com/Application" (dummy url).
    In the obj.conf file.. it is as below.
    Init fn="load-types" mime-types="mime.types"
    Init fn="load-modules" funcs="fun1,fun2" shlib="/usr2/abc/home/web/slib/AA.so"
    Init fn="fun1" LateInit="yes" ui_url_prefix="Application"
    This works fine....Now I have a BB.so which I want to be accessed by "www.abc.com/Application1" (dummy url).
    When i edit the config file as below. It doesnt seem to work. Can someone please help.
    Init fn="load-types" mime-types="mime.types"
    Init fn="load-modules" funcs="fun1,fun2" shlib="/usr2/abc/home/web/slib/AA.so"
    Init fn="fun1" LateInit="yes" ui_url_prefix="Application"
    Init fn="load-types" mime-types="mime.types"
    Init fn="load-modules" funcs="fun1,fun2" shlib="/usr2/abc/home/web/slib/BB.so"
    Init fn="fun1" LateInit="yes" ui_url_prefix="Application2"
    Both AA.so and BB.so in few functionalites, but otherwise are same. And I want both "www.abc.com/Application1" and "www.abc.com/Application2" to work.
    Im new to this.. please excuse my ignorance.

    First - You really, REALLY should be upgrading to Web Server 6.1 or Web Server 7.0 (or Open Web Server). Really.
    Second - You can have multiple SAFs, but you need to make sure that you code them to avoid conflicts with function names, data structures, etc. Good luck.

  • Editing obj.conf manually

    I was putting some content expiry objects in the obj.conf file in sun one 6.1 sp2 on solaris.
    <Object ppath="*.swf">
    PathCheck fn="set-cache-control" control="public,must-revalidate,max-age=3600"
    </Object>
    When doing the same thing from Administrative console it give me two options :
    Apply changes "WITHOUT" restarting and then "WITH" restart.
    How can i edit the obj.conf file and apply "WITHOUT" restarting from command line ?
    Thanks

    Run the reconfig script. It's in the instance's bin subdirectory.

Maybe you are looking for

  • Dual graphics - I cant run radeon, only intel.

    I have laptop Lenovo G510. It has integrated Intel graphics card and Radeon HD 8570M. I wanted use only radeon (with xf86-video-radeon), but only drivers for intel (xf86-video-intel) working. [x@arch64 ~]$ lspci | grep -e VGA -e 3D 00:02.0 VGA compat

  • Live Cycle Acrobat 9 etc... Flex day 3

    Day 3... and I am frustrated to discover that I may not be able to continue with this training because apparantly Live Cycle Data Services ( and Acrobat 9) which the Live cycle site advises downloading first - are only available for Windows, not Mac.

  • IDOC in  Ibound  processing problem...

    Hi All   i have  to transfer data from one server to other and i used Idoc. with ale. All works fine in Outbound process with status 03. but in Inbound  processing the status is 51.(Documant not posted .). and i am not able to se the data in the inbo

  • Reproting tool(api) for exporting in xls files in different templates

    Hi I need api for exporting data into xls files. DIfferent reports everyone has own template and data. Please suggest some free java APIs or tools that can be intergrated with java web application easy.

  • How to back-grade Camera RAW to 2.1?

    Can anyone explain how to back grade to camera raw support 2.1 verses the buggy 2.2 one? Luckily, I only updated my MBP and not my main work station but I'm in need of fixing my MBP for a location project I'm doing. I've found the former 2.1 update,