how to set maintenance page for all except to your network

how to set maintenance page for all except to your network

Today in this tutorial we will learn how to set maintenance page in PHP based website.In this example publicly the website will show maintenance page for all but the maintenance page will not be visible for your network. In other words,from your network you will see complete website (not maintenance page).The developer and system admin…

How to setup Varnish to do not cache particular url specific domain

How to setup Varnish to do not cache particular url specific domain

This is again with my post I come back to share how I setup a Varnish in sharadchhetri.com network which is hosted in DigitalOcean but this time scenario is different, we do not want a particular URL or domain name should be cached by Varnish. In this real scenario I have taken our own URL…

How to install whois client in CentOS and Red Hat

How to install whois client in CentOS and Red Hat

Whois is a protocol which runs on port no. 43 and it is also act as query. Whois helps to get the information regarding internet resources like domain name and IP Address network blocks. Mostly it is widely used for getting information about domain like owner of domain name,its registrar,Date of expiry etc. Install whois…

Setup varnish cache server for wordpress site
|

Setup varnish cache server for wordpress site

In this turorial we will learn,how to configure Varnish 3.x vcl file for WordPress.We will setup varnish cache server for wordpress site.This will increase the page load speed of the site/blog.Recently I migrated my server to DigitalOcean.To migrate the server from web hosting to cloud server was not done first time,it was also done in…

How to hide php version information in header

How to hide php version information in header

While migrating from godaddy account to new server which is hosted in DigitalOcean,I checked the header by using command curl -I https://sharadchhetri.com . In output of command ,I found PHP version was given.For security point of view I want to hide or disable this information. For this you have to do small change in php.ini…

Install and configure Varnish Cache server on CentOS/RHEL 6.x
|

Install and configure Varnish Cache server on CentOS/RHEL 6.x

In this tutorial we will learn about,how to install and configure Varnish Cache server on CentOS/RHEL 6.x. We will install varnish 3.0 version in CentOS 6.x . I am writing this basic tutorial to setup your first varnish in server.Here we will use rpm packages for installation.The rpm packages are available as per your operating…

SCP file and directory in linux and Unix like operating system
|

SCP file and directory in linux and Unix like operating system

SCP stands for secure copy.It is based upon SSH (Secure Shell) protocol.SCP is used for securely transferring the files between local and remote system. Note: If SSH service is not running or deny by firewall or IPTABLES of system then SCP will also not work. Syntax: scp SOURCE-FILE-LOCATION TARGET-LOCATION (1) SCP file from local to…

Gitweb not displaying correctly apache MIME issue CentOS 6.4

Gitweb not displaying correctly apache MIME issue CentOS 6.4

While setting the new Git server with gitweb I saw this issue.Generally never seen before,here Gitweb page was not displaying correctly. You can see the below given screenshot: While debugging the issue,it is found that the problem was with MIME for css and javascript. To solve this issue ,I only approached to create a .htaccess…

How to install jboss application Server in CentOS 6.x

How to install jboss application Server in CentOS 6.x

In this post we will learn how to install Wildfly which was earlier known as JBOSS Application Server. For Wildfly the main dependency is Java. In your system Java must be installed and Java environment variable should also be set. I have done this practical after doing minimal installation of CentOS 6.4 which is 64…

list files and directories by 4 commands in linux

list files and directories by 4 commands in linux

When I started learning linux ,for listing files and directory I firsts learnt the command ls. ls command is widely in linux and Unix like operating system.It is a system command which by default shipped with operating system.Today I am sharing the 4 commands by which you can list file and directories.On other hand you…

Forward all incoming emails to other SMTP server or gateway
|

Forward all incoming emails to other SMTP server or gateway

In this post we will learn how to forward all emails of particular domain to another SMTP server or gateway. I also used this method in different scenario. Scenario: I have my own mail server which can host multiple virtual domains and users (postfix+mysql). Now a client has domain called example.com and for mailing he…