Activities

September 2020
M T W T F S S
« Apr    
 123456
78910111213
14151617181920
21222324252627
282930  

NGINX : www redirection

Here are the simple Nginx rewrite rule to redirect all non www traffic to www domain.

# enforce www (exclude certain subdomains) #if ($host !~* ^(www|subdomain)) #{ #   rewrite ^/(.*)$ $scheme://www.$host/$1 permanent; #}

I took it from here http://www.farinspace.com/codeigniter-nginx-rewrite-rules/ as I see it’s the first blog I see the most of theNginx re-write rules.

NGINX : Installing SSL certificate

How do I install SSL certificate on NGINX Webserver. NGINX is most popular for hosting rails applications as well as used for fast http server for serving streaming videos and images.

Here are the steps to install Godaddy SSL certificate on Nginx server.

First you need to concatenate the both certificate and godaddy CA […]

Ngnix webserver :- Php – CodeIgniter hosting

I had to deploy one php site on Rails server to setup admin UI for a mobile application. This is the first time I’m using Ngnix for hosting PHP application.

After few usual Google I got the fix. Adding this line try_files $uri $uri/ /index.php; in virtual hosting area did the trick.

How […]

IPtables : Blocking bots/spam attack based on the Log file output

Recently I had a client who wants to move more than 300 domains hosted servers to AWS server. His application uses a product which can serve multiple domains based on the request. After a successful migration, Im noticed that web server is hitting badly and causing server load to become high most of the time. […]

Glassfish 3 : There is a process already using the admin port 4848

When I migrated my glassfish server to new server I got the flowing error.

[root@QA02]# /var/glassfish-QA/bin/asadmin start-domain domain1 There is a process already using the admin port 4848 — it probably is another instance of a GlassFish server. Command start-domain failed.

I tried killing all the java process by executing this command “killall -9 java” […]

Running multiple Glassfish instances in a server

One of the client to want to use 3 Glassfish environment for his Dev,QA and UAT purpose. He does not wish to pay separate servers for these low priority application roles.

System requirements

1. Have more RAM (16GB is fine) and medium computing power 2. 3 static IP for 3 environments 3. Glassfish installation.

[…]