Monday, 22 August 2011

Configure DSCC To Run On Oracle Application Server and Glassfish

#/opt/SUNWdsee/dscc6/bin/dsccsetup war-file-create

#/opt/SUNWdsee/dscc6/bin/dsccsetup ads-create

#/opt/SUNWdsee/dscc6/bin/dsccsetup cacao-reg

#/opt/SUNWdsee/dscc6/bin/dsccsetup status

#cd /opt/SUNWapp/domains/domain1/config    /////my application server path

#vi server.policy , add:

// Permissions for Directory Service Control Center
grant codeBase "file:${com.sun.aas.instanceRoot}/applications/j2ee-modules/dscc/-" 
{
    permission java.security.AllPermission;
}



#cp /opt/SUNWdsee/var/dscc6/dscc.war  /opt/SUNWappserver/domains/domain1/autodeploy


go to application server adminstrattion console and deploy dscc in web application tab, using the dscc.war as deployment war file.

Arabic DNS

     we can use Arabic domain name in web browser to access Arabic web sites, and this is called from the ISP's as Arabic DNS, even i believe it is not Arabic DNS as much it is an Arabic Browser Address Bar from Web Browser, like IE. and Mozilla.

for my example i am going to let  الاردن.سمير  points to IP 172.22.10.49

to do this we need do the following:

1- #vi /etc/named.conf

zone    "xn--wgbd8cua"        in      {
        type    master;
        file    "forward.zone1";
};

2- in /var/named dirctory, add:

vi  forward.zone1

$TTL    86400

@               IN      SOA     mail.sun.jo     root.mail.sun.jo        (     //// this is the name of my DNS server ////
                                                200905092
                                                3600
                                                1800
                                                6048000
                                                86400   );
                IN      NS      172.22.10.49
xn--igbhzh7gpa          IN      A       172.22.10.49

3- pkill -HUP named

4- in mozilla:

    a- open new tab write in it (about:config)
    b- right click -> new -> boolean
    c- network.IDN.whitelist.xn‐‐mgbayh7gpa in the name.
    d- false


and now when i right الأردن.سمير every thing work fine







block email using SUN messaging server

This summary is not available. Please click here to view the post.

Configure Apache to Use HTTPS in one page only

      if we need to set up Apache to use SSL (HTTPS) in only one  page, and let the other pages accessed using HTTP (we need this to force users log in to our web site using SSL, but the other pages using ordinary HTTP, the thing that speed the web site up and keep it secure), we can do the following:

 1- first thing you need to configure Apache to use HTTPS ( I am not covering this issue now).

2- in the http.conf file, in the root domain not the Virtual HTTPS domain put the following:

RewriteEngine on
RewriteRule "^/test/test2.php*" "https://172.22.10.170/test/test2.php" [R=301,L]

whre /test/test2.php : is the path of the page that we need to use in https
and 172.22.10.170 : is the IP of my web server (if you use DNS you can put the name of the web server instead of IP)

3- restart Apache.

and now all the pages are accessed using HTTP except test2.php page.