1. Backup Currently Running IP Configuration File
cp /etc/network/interfaces /home/sugizo/bkup/interfaces.ori
2. Edit IP Address Configuration File
sudo vim /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.44.3
netmask 255.255.255.0
gateway 192.168.44.2
network 192.168.44.0
broadcast 192.168.44.255
auto eth1
iface eth1 inet static
address 18.18.18.3
netmask 255.255.255.0
gateway 192.162.44.2
network 18.18.18.0
broadcast 18.18.18.255
auto eth2
iface eth2 inet static
address 88.88.88.3
netmask 255.255.255.0
gateway 192.168.44.2
network 88.88.88.0
broadcast 88.88.88.255
3. Backup Currently Hostname File Configuration
cp /etc/hostname /home/sugizo/bkup/hostname.ori
4. Edit Hostname File Configuration
sudo vim /etc/hostname
karmic.ubuntu64.vmw
5. Backup Currently Host Addresses Configuration
cp /etc/hosts /home/sugizo/bkup/hosts.ori
6. Change Host Addresses Configuration
sudo vim /etc/hosts
127.0.0.1 localhost
127.0.1.1 karmic.ubuntu64.vmw karmic
192.168.44.3 karmic.ubuntu64.vmw karmic
18.18.18.3 karmic.ubuntu64.vmw karmic
88.88.88.3 karmic.ubuntu64.vmw karmic
7. Reboot the Machine
sudo reboot
8. Update List Packages
sudo apt-get update
9. Install Apache 2 Web Server, SSL Certification
sudo apt-get install apache2 ssl-cert
10. Test Apache
Open Your Browser Type : http://karmic
or http://192.168.44.3
11. Create a Certificate SSL for Apache
sudo mkdir /etc/apache2/ssl
sudo make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/apache2/ssl/apache.pem
12. Enable SSL Module on Apache 2
sudo a2enmod ssl
sudo /etc/init.d/apache2 restart
13. Create Virtual Host for SSL Website
sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/ssl
14. Edit Virtual Host for SSL Website Configuration
sudo vim /etc/apache2/sites-available/ssl
NameVirtualHost *:443
<virtualhost *:443>
SSLEngine On
SSLCertificateFile /etc/apache2/ssl/apache.pem
ServerSignature On
ServerAdmin sugizo@japan.com
15. Enable SSL Virtual Host
sudo a2ensite ssl
sudo /etc/init.d/apache2 reload
sudo /etc/init.d/apache2 restart
16. Test Apache with SSL
Open Your Browser Type : https://karmic
or https://192.168.44.3
Here my first 8 point is same as my this post .



Recent Comments