Tuesday, December 30, 2014

Mail configuration using Apache James

1. Download  Apache James from  http://james.apache.org/download.cgi 2. Unzip to your local drive 3.  Add the host files Entry        ... thumbnail 1 summary
1. Download Apache James from http://james.apache.org/download.cgi

2. Unzip to your local drive


3. Add the host files Entry

                 127.0.0.1              smtp.bala.com
                 127.0.0.1              pop3.bala.com

4. Edit the file D:\ATG\apache-james-2.3.2\james-2.3.2\apps\james\SAR-INF\config.xml

           
 a) Add server names in “servernames” section
                <servername>bala.com</servername>
           
 b) Modify the following properties in “dnsserver” section
                 <server>172.18.18.210</server> <!--  Your DNS server ip-->
                <autodiscover>false</autodiscover>
           
 c)  “authorizedAddresses” section
                   <authorizedAddresses>
                         172.18.251.141/255.0.0.0, 127.0.0.0/8
                   </authorizedAddresses>

5. Run D:\ATG\apache-james-2.3.2\james-2.3.2\bin\run.bat



6. Run the below command



You should get the below running server


6. Configure Outlook express
       
      Tools->Accounts->Add->Mails



7. Adding Mail address


8. Adding mail server names


9. Adding mail login details





10. Testing  the mail configurations

Sending Test mail



Receiving test mail











Saturday, December 20, 2014

Set domain name to show website without the www prefix

Once you bought domain name from any domain registrar you can configure this to IP address where you hosted your website contents. B... thumbnail 1 summary

Once you bought domain name from any domain registrar you can configure this to IP address where you hosted your website contents.

Below are the steps

        1. Login into yourdomain.com control panel.


            2. In DNS Management section click on Manage DNS,It will list the A records and other   configurations.




     3.  In Manage DNS , click on A records Tab



    Here you need to add 2 entries. Initially there will be no records .
      a.       In first entry
            Leave hostname field empty
            Add your hosted ip and click on Add Record
     b.      In second entry
           Add www as a value in hostname field
          Add your hosted ip and click on Add Record


4. You are done . This will take some to take time to reflect the changes.


The first entry will be used to configure to use your domain with www
Second entry will be used to configure to se your domain  without www.

Wednesday, December 17, 2014

Windows Apache2.2+Tomcat6+Virtual hosting Configuration

This will give detailed idea about Apache2.2+Tomcat 6 configuration with Virtual hosting.   1.Install Apache Server and check the corre... thumbnail 1 summary
This will give detailed idea about Apache2.2+Tomcat 6 configuration with Virtual hosting.
 1.Install Apache Server and check the correctness by accessing
                http://localhost
                default page will load.
2.Install Tomcat container and check the correctness by accessing
                http://localhost:8080/
                default page will load.
3.Download the Apache tomcat Apache JServ Protocol  connector from http://tomcat.apache.org/download-connectors.cgi
4.Copy the downloaded file mod_jk-apache-2.2.3.so to modules/
5.Create a file mod_jk.config in \conf folder with the following contents.
                LoadModule jk_module modules/mod_jk-apache-2.2.3.so
                JkWorkersFile conf/workers.properties
                JkShmFile logs/mod_jk.shm
                JkLogFile logs/mod_jk.log
                JkLogLevel info
                JkMount /chat/* worker1
6.Create workers.properties in /config with the following contents
                worker.list=worker1
                worker.worker1.type=ajp13
                worker.worker1.host=localhost
                worker.worker1.port=8009
7.Edit the httpd.config file and add the following,
         This is for virtual host configuration
                NameVirtualHost *:80
                NameVirtualHost *:443
                <VirtualHost *:80>
                                DocumentRoot C:/BALA/Apache/htdocs/e-Shop
                                ServerName bala.test2.corp.com
                                # Other directives here
                </VirtualHost>
                <VirtualHost *:80>
                                    #DocumentRoot C:/BALA/Apache/htdocs/individual
                                JkMount / worker1
                                JkMount /* worker1
                                ServerName bala.test1.corp.com
                                # Other directives here
                </VirtualHost>

  add the below file at the bottom of the file to load the configuration.
  Include conf/mod_jk.conf
 8. Restart the server
10. Page will be loaded without tomcat port.


Name based Virtual Hosting - Single IP with Multiple domain name

If you have a single IP and 2( or more)domain name then you can configure Name based Virtual hosting. The below example is   Checke... thumbnail 1 summary

If you have a single IP and 2( or more)domain name then you can configure Name based Virtual hosting.

The below example is  Checked version Apache 2.2
Sample  Windows Host file entry
                localhost       bala.test1.corp.com
                127.0.0.1     bala.test1.corp.com
                localhost       bala.test2.corp.com
                127.0.0.1     bala.test2.corp.com

httpd.config Entry
NameVirtualHost *:80
NameVirtualHost *:443
<VirtualHost *:80>
    DocumentRoot C:/BALA/Apache/htdocs/e-Shop
    ServerName bala.test2.corp.com
     # Other directives here
</VirtualHost>
<VirtualHost *:80>
    DocumentRoot C:/BALA/Apache/htdocs/individual
    ServerName bala.test1.corp.com
  # Other directives here
</VirtualHost>


Once all these configurations are done restart your Apache server 

You can hit the url you will be able to see the two different sites as configured.





Problem faced,
VirtualHost 127.0.0.1:0 overlaps with VirtualHost 127.0.0.1:0, the first has precedence, perhaps you need a NameVirtualHost directive - then it took same doc room for both the site. Then changed to name based virtual hosting than IP based.

Name based Virtual Hosting - Multiple IP and Multiple domain name
# This is the "main" server running on 172.xx.xx.xx
ServerName server.example.com
DocumentRoot /www/mainserver
<VirtualHost 172.xx1.xx1.xx1>
    DocumentRoot /www/example1
    ServerName www.example.com
    # Other directives here ...
</VirtualHost>
<VirtualHost 172.xx2.xx2.xx2>
    DocumentRoot /www/example2
    ServerName www.example.org
    # Other directives here ...
</VirtualHost

Add or Remove Blogger Custom favicon

 You can add custom favicon for blogger.       A   favicon   (ie., Favorite icon ), also known as a   shortcut icon ,   Web site icon ... thumbnail 1 summary

 You can add custom favicon for blogger.

     A favicon (ie.,Favorite icon), also known as a shortcut icon, Web site icon, tab icon or bookmark icon, is a file containing one or more small icons, most commonly 16×16 pixels, associated with a particular Web site or Web page.

You can see your website favicon in the left side browser tab.


default favicon 
If you want to change your default favicon in your blogger simply follow these steps,

1. Login into your blogger account

2. Click on Layouts in the left side menu as below


               
3. Click on Edit link in the favicon section

4. Choose the custom favicon from your disc.  Please use a square that’s less than 100kb.

5.  After choosing the file click on save. That’s it ! You are updated your new favicon.
 If not try clearing the browser cache or try from other browser.