Wednesday 27 November 2013

SecureCRT delete key not working in SSH

Recently I have been looking for tool that would keep my passwords save for linux machine that I access. there are several tools that can be used for this like putty connection manager, SecureCRT.

I have been using SecureCRT save password and automated login method were working fine but I was facing issue with "del" working as "backspace" key. So I made changes in the logon SSH method:

Go into

Click on properties 



Change the emulation from VT100 to Xterm

and then login. issue will be resolved. Hopefully! 

Saturday 16 November 2013

Nginx webserver multiple website problem

Recently I was working on Nginx webserver with multiple website. Problem I was facing was that my first website was working fine using www.firstdomain.com and firstdomain.com. But on the second domain my website www.seconddomain.com was being redirected to first domain and using seconddomain.com was working fine.

I tried :

server_name www.seconddomain.com;
even 
server_name seconddomain.com;
but then I was able to solve this issue by :
server_name .seconddomain.com;
server_name .firstdomain.com;
In their respective files under the sites-enabled directory:

and then service nginx restart