One day my client asked me to setup a webserver on a control panel less Ubuntu server. He needs as php as suphp. Following are the steps which I followed during the web server setup.
One day my client asked me to setup a webserver on a control panel less Ubuntu server. He needs as php as suphp.
Following are the steps which I followed during the web server setup.
Downloaded all neccessary sources:
1. First compile apache from the source with following configure options
Continue reading “Compile apache with suphp on Ubuntu”
Once the private key is generated a Certificate Signing Request can be generated. The CSR is then used in one of two ways. Ideally, the CSR will be sent to a Certificate Authority, such as Thawte or Verisign who will verify the identity of the requester and issue a signed certificate. The second option is to self sign the CSR.
Before proceeding with installation, make sure that Apache is compiled with mod_ssl. You can check the same by executing the following command in the server.
Continue reading “Generating and installing SSL certificate”
OpenSSL is a cryptography toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) network protocols and related cryptography standards required by them. The openssl program is a command line tool for using the various cryptography functions of OpenSSL’s crypto library from the shell
1. Get complete available details of an SSL certificate
openssl x509 -text -in ssl.cert
2. Who issued the certificate?
Continue reading “Checking SSL cert’s validity and other details”
Hello every one. I wrote the last article around 30 days before. I was little busy. Today is Dec 24 and I wish you all a happy Merry Christmas.
In this article I am explainig the way to enable apache status which can be view from a URL by browsers. This feature of apache is by the “status_module” module. The Status module allows a server administrator to find out how well their server is performing. A HTML page is presented that gives the current server statistics in an easily readable form. If required this page can be made to automatically refresh (given a compatible browser).
For enabling apache status you need to edit your apache configuration file [httpd.conf].
Add following lines to your httpd.conf file.
Continue reading “Apache detailed status from URL”
In the previous article I explained how to disable complete mod_sec rules for a particular URL. But from the security point of view it is very unsafe to doing so. This article will explain how to disable a particular rule for a particular URL.
For doing this we use mod_sec Configuration Directive named
Description: Removes matching rules from the parent contexts.
Continue reading “Making mod_sec rule exceptions – part II”
What Is ModSecurity?
ModSecurity is a web application firewall that can work either embedded or as a reverse proxy. It provides protection from a range of attacks against web applications and allows for HTTP traffic monitoring, logging and real-time analysis.
It is also an open source project that aims to make the web application firewall technology available to everyone.
Suppose you want to make an exception in mod_sec rules for some URLs say all URLs starting with “phpmyadmin”.
For that do the following:
mod_sec rule conf path from main
Continue reading “Making an exception for a particular URL in mod_sec rules – part I”
Authentication is any process by which you verify that someone is who they claim they are. Authorization is any process by which someone is allowed to be where they want to go, or to have information that they want to have.
If you have information on your web site that is sensitive or intended for only a small group of people, the techniques in this article will help you make sure that the people that see those pages are the people that you wanted to see them.
This article covers the “standard” way of protecting parts of your web site that most of you are going to use.
Continue reading “Password protecting a folder of a website”