Install Apache2 and Create Virtual Hosts:-
sudo apt-get update
sudo apt-get install apache2
1. Create website directory structure:-
sudo mkdir -p /var/www/python.bh/public_html
sudo mkdir -p /var/www/openstack.python.bh/public_html
2. Grant Permission:-
sudo chown -R $USER:$USER /var/www/python.bh/public_html
sudo chown -R $USER:$USER /var/www/openstack.python.bh/public_html
sudo chmod -R 755 /var/www
3. Create a html index page for each website
vi /var/www/python.bh/public_html/index.html
vi /var/www/python.bh/public_html/index.html
4. Create Virtual Host File and add site entries
sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/python.bh.conf
sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/openstack.python.bh.conf
sudo vi /etc/apache2/sites-available/python.bh.conf
<VirtualHost *:80>
ServerAdmin admin@python.bh
ServerName python.bh
ServerAlias python.bh
DocumentRoot /var/www/python.bh/public_html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Copy the same conf file for other server and update.
5. Register and Enable New Virtual Hosts
sudo a2ensite python.bh.conf
sudo a2ensite openstack.python.bh.conf
6. Restart apache2 server
sudo service apache2 restart
7. Add virtual host entries in hosts file.
127.0.0.1 localhost
127.0.1.1 openstack
192.168.48.128 openstack.python.bh openstack
192.168.48.128 python.bh python
8. Access the website http://python.bh & http://openstack.python.bh
Note: For windows user add these entries in C:\Windows\System32\drivers\etc\hosts file.
192.168.48.128 python.bh
192.168.48.128 openstack.python.bh
https://code.google.com/p/openbizcard/source/browse/trunk/integrated/Scanner/src/com/yov/lib/?r=103
http://www.gnome.sk/Twain/jtp_try&buy.html
No comments:
Post a Comment