How to Create Virtual Sites on Apache2 WebServer

  • Installing Apache2 in Ubuntu

First, lets install Apache2 in Ubuntu. To do that, run the commands below.

sudo apt-get install apache2

 

After installing Apache2, go and create three separate directory for each website. To do that, run the commands below


sudo mkdir -p /var/www/myblog.com/html/
sudo mkdir -p /var/www/mynewblog.com/html/
sudo mkdir -p /var/www/techblog.com/html/

 

After creating those three directories, the next step is to grant permissions to Apache2 for these directories. To do that, run the commands below.

sudo chown -R apache:apache /var/www/

 

Then give Apache the correct permissions to manage files and folder in these directories.

sudo chmod -R 755 /var/www/

 

Now that the separate directories are created, how would you tell each one from the other. To do that, we’ll going to be creating separate and unique pages for each of the site.

Our basic sample pages will carry a simple line of text with the name of the website. To do that, create a simple index.html page for www.myblog.com

sudo vi /var/www/myblog.com/html/index.html


<html>
<head>
<title>myblog.com<title>
</head>
<body>
<p>It work! Welcome to myblog.com</p>
</body>
</html>

 

The next page is our mynewblog.com website. Create a test page and with the same simple message.

sudo vi /var/www/mynewblog.com/html/index.html

 

<html>
<head>
<title>mynewblog.com<title>
</head>
<body>
<p>It work! Welcome to mynewblog.com</p>
</body>
</html>

 

Do the same for the last website and save it.

 

After that go and create virtual host directives for each of the three websites. To do that, go and copy the default Apache site configuration file and create our virtual hosts from it.

Run the commands below to do it.


sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/myblog.com.conf
sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/mynewblog.com.conf
sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/techblog.com.conf

 

Now that the three separate virtual hosts are created,

sudo vi /etc/apache2/sites-available/myblog.com.conf


ServerAdmin admin@myblog.com
ServerName myblog.com
ServerAlias www.myblog.com
DocumentRoot /var/www/myblog.com/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

 

Do the same for each of the other websites and replace the highlighted lines to correspond with the website.

The next things to do is enable the sites. To do that, run the commands below


sudo a2ensite myblog.com.conf
sudo a2ensite mynewblog.com.conf
sudo a2ensite techblog.com.conf

 

Restart Apache and test your sites.

sudo service apache2 restart

 

Now, open your local host file from any machine and enter the same server IP address for each of the website, then save and open your browser and type the domain name.

 


127.0.0.1 localhost
192.168.6.131 myblog.com
192.168.6.131 mynewblog.com
192.168.6.131 techblog.com

Type the domain name in your browser and it should work.
Enjoy!

Intro to FryGuys Sharing Site

susquehanna_river
Priesthood Restoration–Susquehanna River, New York

Hello one and all.  Welcome to the fryguys wordpress site.  This is a site where you can add pictures, written ideas or thoughts, and where you can share with the family.

Susquehanna River
Susquehanna River

The site is encrypted and secure, so that only you with your username and password  and others of our family can view, post (write something), and share  your stuff.

Please feel free to call me or email or text me if you have questions about how to use this site.  I, too, am still learning, so maybe we can learn together.  I am hoping that this can be a place of fun, learning and sharing.

Your Mom (grandma) and I (grandpa) are looking forward to viewing what you might write and share.  We love all of you very much and hope that we might come to know one-another better through this site.

fryguys.org

The Family–A Proclamation to the World

 
The First Presidency and Council of the Twelve Apostles of The Church of Jesus Christ of Latter-day Saints
© 1995, 2008 by Intellectual Reserve, Inc. All rights reserved. Printed in the United States of America.
English approval: 5/08. 35602
We, the First Presidency and the Council of the Twelve Apostles of The Church of Jesus Christ of Latter-day Saints, solemnly proclaim that marriage between a man and a woman is ordained of God and that the family is central to the Creator’s plan for the eternal destiny of His children.

All human beings—male and female—are created in the image of God. Each is a beloved spirit son or daughter of heavenly parents, and, as such, each has a divine nature and destiny. Gender is an essential characteristic of individual premortal, mortal, and eternal identity and purpose.

In the premortal realm, spirit sons and daughters knew and worshipped God as their Eternal Father and accepted His plan by which His children could obtain a physical body and gain earthly experience to progress toward perfection and ultimately realize their divine destiny as heirs of eternal life. The divine plan of happiness enables family relationships to be perpetuated beyond the grave. Sacred ordinances and covenants available in holy temples make it possible for individuals to return to the presence of God and for families to be united eternally.

The first commandment that God gave to Adam and Eve pertained to their potential for parenthood as husband and wife. We declare that God’s commandment for His children to multiply and replenish the earth remains in force. We further declare that God has commanded that the sacred powers of procreation are to be employed only between man and woman, lawfully wedded as husband and wife.

We declare the means by which mortal life is created to be divinely appointed. We affirm the sanctity of life and of its importance in God’s eternal plan.

Husband and wife have a solemn responsibility to love and care for each other and for their children. “Children are an heritage of the Lord” (Psalm 127:3). Parents have a sacred duty to rear their children in love and righteousness, to provide for their physical and spiritual needs, and to teach them to love and serve one another, observe the commandments of God, and be law-abiding citizens wherever they live. Husbands and wives—mothers and fathers—will be held accountable before God for the discharge of these obligations.

The family is ordained of God. Marriage between man and woman is essential to His eternal plan. Children are entitled to birth within the bonds of matrimony, and to be reared by a father and a mother who honor marital vows with complete fidelity. Happiness in family life is most likely to be achieved when founded upon the teachings of the Lord Jesus Christ. Successful marriages and families are established and maintained on principles of faith, prayer, repentance, forgiveness, respect, love, compassion, work, and wholesome recreational activities. By divine design, fathers are to preside over their families in love and righteousness and are responsible to provide the necessities of life and protection for their families. Mothers are primarily responsible for the nurture of their children. In these sacred responsibilities, fathers and mothers are obligated to help one another as equal partners. Disability, death, or other circumstances may necessitate individual adaptation. Extended families should lend support when needed.

We warn that individuals who violate covenants of chastity, who abuse spouse or offspring, or who fail to fulfill family responsibilities will one day stand accountable before God. Further, we warn that the disintegration of the family will bring upon individuals, communities, and nations the calamities foretold by ancient and modern prophets.

We call upon responsible citizens and officers of government everywhere to promote those measures designed to maintain and strengthen the family as the fundamental unit of society.

This proclamation was read by President Gordon B. Hinckley as part of his message at the General Relief Society Meeting held September 23, 1995, in Salt Lake City, Utah.

^ Back to top

A Visit to the LA Zoo

The LA Zoo is one of the places we like to take people when they come visit.  On this particular occasion, they had a dinosaur exhibit which the grandchildren really enjoyed.  Here are a few short videos for your viewing pleasure.

Dinosaur
Dinosaur at the LA Zoo

Back to Fryguys.org

Connie LaVae (Frank) Fry

 

Picture of a foggy day in the pacific northwest
Connie (Frank) Fry
Mother and Artist

Some people in our family are just great artists.  My mother learned much of her painting techniques from an artist from China.  Here is one of her paintings that I particularly enjoy.  It reminds me of a chilly, foggy day in the Pacific Northwest.

Painting
Pacific Northwest Fishing Village

The next picture is a watercolor of a bird resting on the branches of a red hibiscus.

 

 

Bird Painting
Beautiful Watercolor Bird