Linux (RHEL / CentOS)
This document describes the entire process of installing and configuring a LAMP server. LAMP stack is a group of open source software used to get websites with databases running.
This document describes a basic Apache installation and configuration. Apache is a free open source software which runs web servers.
Network Configuration
Action |
Command |
Get IP configuration |
ifconfig -a |
IP configuration |
vi /etc/sysconfig/network-scripts/ifcfg-eth0 |
Change hostname |
vi /etc/sysconfig/network
NETWORKING=yes NETWORKING_IPV6=no HOSTNAME=hostname.local GATEWAY=X.X.X.X |
Setup a default Gateway |
Open /etc/sysconfig/network file: # vi /etc/sysconfig/network
GATEWAY=X.X.X.X |
Local name resolution |
vi /etc/hosts |
Configure… Continue reading |
If you wish to redirect users from the non-secure site to the SSL site, you can use the RewriteEngine directive inside the non-secure VirtualHost in your configuration (vhost.conf) of apache web server:
This document describes the steps to enable SSL Certificate on Apache Webserver to encrypt a site’s information and create a more secure connection. Additionally, the certificate can show the virtual private server’s identification information to site visitors. Certificate Authorities can issue SSL certificates that verify the virtual server’s details while a self-signed certificate has no 3rd party corroboration.
If you have PFX certificate, you can convert this with OpenSSL to Apache compatible format.