Hi Yihua,

 

The following is the steps I used, hope it helps.

 

 

URNAME: the name you want

WWW_OWNER: like “apache”

 

a. Make directory

mkdir /www_htdocs/URNAME

                      mkdir /www_cgi-bin/URNAME

                     mkdir /OpenCA/var/session/cookie/URNAME

                     chmod 750 –R /OpenCA/var/session/cookie/URNAME

                     chown WWW_OWNER:WWW_OWNER /OpenCA/var/session/cookie/URNAME

 

b. Copy files

cp –R /www_htdocs/ca /htdocs/URNAME

                     cp /www_cgi-bin/ca/ca /www_cgi-bin/URNAME/URNAME

                      cp /OpenCA/etc/servers/ca.conf /OpenCA/etc/servers/URNAME.conf

                     chgrp WWW_OWNER servers/URNAME.conf

                     cp /OpenCA/etc/access_control/ca.xml /OpenCA/etc/access_control/URNAME.xml

 

c. Edit files

c1) /www_htdocs/URNAME/index.html

                                <meta http-equiv="refresh" content="0; URL="">

/cgi-bin/URNAME/URNAME?cmd=getStaticPage&name=index">

                                <a href="">

cmd=getStaticPage&name=index">Enter URNAME</a>

                     c2) /www_cgi-bin/URNAME/URNAME

                                $AUTOCONF {"config_prefix"}  = "URNAME";

                                $AUTOCONF {"PROGRAM"}   = "URNAME Manager";

                     c3) XML

                                <command>

                                /OpenCA/etc/menu.xml

                                make sure that different <item> area has different <id> number

                               

<access control>

                                /OpenCa/etc/rbac/acl.xml

                     c4) conf

                                /OpenCA/etc/servers/URNAME.conf

                                CgiServerType           "URNAME"

CgiServerName           "URNAME"

HtdocsUrlPrefix          "/URNAME"

                                AccessControlConfiguration “/OpenCA/etc/access_control/ URNAME.xml”

 

If there is any thing wrong, plz info me.

 

Regards,

                     Youchun

Reply via email to