Create the documentroot directories for the two virtual host

Assignment Help Web Project
Reference no: EM13863129

This lab is based on Fedora 18, and the results you get may be different if you are using a different version. Also, please be aware that both Fedora and Apache are updated regularly and that the updates may cause problems with this assignment. Please report any anomalies to the SNAP program director using the contact information in the Staff Information area of your course.

1. Boot Fedora, open a terminal session, and log in as root.

2. Change directory to /etc/httpd/conf.

3. Open the httpd.conf file using vi.

4. Search for the NameVirtualHost directive that is close to the end of the file and un-comment it by removing the pound sign from the beginning of the line.

5. Scroll to the end of the file and create two VirtualHost containers by entering the following information:

<VirtualHost *:80>
ServerName www.website1.com
DocumentRoot /var/www/html/website1
<Directory /var/www/html/website1>
Allow from all
</Directory>
</VirtualHost>

<VirtualHost *:80>
ServerName www.website2.com
DocumentRoot /var/www/html/website2
<Directory /var/www/html/website2>
Allow from all
</Directory>
</VirtualHost>

6. Save and exit the httpd.conf file.

7. Create the DocumentRoot directories for the two virtual hosts and the password file using the following commands:

mkdir -p /var/www/html/website1
mkdir -p /var/www/html/website2

8. Change ownership of the two Web directories to the user and group currently assigned to Apache using the following commands:

chown daemon:daemon /var/www/html/website1
chown daemon:daemon /var/www/html/website2

Please note: If you have modified the Apache user and group in the httpd.conf file, please substitute your new user and group for daemon in the above command.

9. Create a default home pages for the website1 site by navigating to /var/www/html/website1, creating an index.html file, and entering the following code, as shown.

<html>
<head>
<title>Web Site 1</title>
</head>
<body>
<h1 align="center">
<font color="red">You have reached Web Site 1</font>
</h1>
</body>
</html>

10. Create a default home pages for the website2 site by navigating to /var/www/html/website2, creating an index.html file, and entering the following code, as shown.

<html>
<head>
<title>Web Site 2</title>
</head>
<body>
<h1 align="center">
<font color="red">You have reached Web Site 2</font>
</h1>
</body>
</html>

11. Restart apache using the apachectl restart command.

12. Add the following lines to the /etc/hosts file on your server:

127.0.0.1 www.website1.com
127.0.0.1 www.website2.com

13. Navigate to your graphical user interface and open Firefox. Type www.website1.com in the Address text box and press Enter. You should see the page that you created for the www.website1.com site.

14. Take a screen shot of the www.website1.com page and paste it here.

15. Type www.website2.com in the Address text box and press Enter. You should see the page that you created for the www.website2.com site.

16. Take a screen shot of the www.website2.com and paste it here.

Experiment with the IIS 7.0 ancillary services in Chapter 10.

Write a short paragraph of your experience with setting up the service of your choosing. Post it here and in this week's Discussion Board.

Reference no: EM13863129

Questions Cloud

How raffies kids should report the mortgage : The board members call you, their trusted CPA, to advise the on how Raffie's Kids should report the mortgage on its balance sheet. What is the ethical issue? Provide your recommendation and discuss the reason for your recommendation - Raffie's Kid..
How raffies kids should report the mortgage : The board members call you, their trusted CPA, to advise the on how Raffie's Kids should report the mortgage on its balance sheet. What is the ethical issue? Provide your recommendation and discuss the reason for your recommendation - Raffie's Kid..
Is the soul really supposed to hate itself : One idea behind the violence in the poem is that St. John feels that the soul cannot be united in love with God until it finds itself to be contemptible. In your opinion, what do you think St. John means by this. Is the soul really supposed to hat..
In determining the future value of a single amount : In determining the future value of a single amount
Create the documentroot directories for the two virtual host : Write a short paragraph of your experience with setting up the service of your choosing. Post it here and in this week's Discussion Board.
Why is important for marketers to understand cultural swings : Why is important for marketers to understand cultural swings?
Identifying and narrowing your research paper topic : Describe methods to use in identifying and narrowing your research paper topic. Examine and summarize information from at least two scholarly sources for one of the topics that may prove valuable as you seek to defend your claims regarding your ch..
What engaged you during this performance : What engaged you during this performance? What disengaged you? Why? Discuss specific observations/examples from the performance: acting, directing, set/costume/lighting/sound design, and audience. Cite and apply specific ideas/theories from Theatri..
Prepare a profit and loss statement for farming operation : Prepare a Profit and Loss Statement for the farming operation and determine the net profit (loss) before income taxes.

Reviews

Write a Review

Web Project Questions & Answers

  What would like to web page to do

What would like to web page to do? Who is my audience and What do I want it to look like? How simple do I want it? How complex?

  Web development and design foundations

Web Development & Design Foundations with HTML 5, 7th ed. You have three attempts to complete the concepts exam and 60 minutes per attempt

  How techniques assist in monitoring and controlling project

How do these techniques assist in monitoring and controlling the project activity?

  How to improve on inefficiency of current web based solution

In order to improve on the inefficiencies of current web based solution, the following solutions are being proposed. We are proposing implementing a distributed systems architecture.

  Posting content without the consent of the targeted person

There are two unfortunate behaviors that have emerged on the internet: Posting content without the consent of the targeted person

  Discussion of the project research activity

Maintain a journal of the activities and research that you have engaged in in the completion of this assignment.

  Create a multi-view program for the iphone

iPhone Application Development. Compress the entire XCode project folder as a single zip, rar or other file format using an "archive file" or compression utility like PKZIP.

  Create an internet website to sell the large inventory

convince the owner that the only way to sustain the business and increase revenue is to create an Internet Website to sell the large inventory of aquarium decorator items

  Accurate and functional markup code

Demonstrate the following characteristics: Effective file management, Accurate and functional markup code and Effective and functional navigation

  System development life cycle

As part of your job, you must complete a 10-to-15 page paper that follows this project through the system development life cycle (SDLC). This assignment will require you to do the following: Discuss what it will take to build a Web architecture, mo..

  Describe the steps you have taken to maintain and redesign

Describe the steps you have taken to maintain and redesign your site(basic website beginner). How is the process that you followed similar to or different from how sites are maintained and redesigned in the professional environment

  Create an html form and a corresponding java servlet

Construct an HTML form and a corresponding Java servlet that receives one or many parameters from the form and displays the result in a servlet generated dynamic page.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd