Create default home pages for each web site

Assignment Help Web Project
Reference no: EM13873778

This lab is based on Apache 2.2.20 and above running on Fedora 14 and above. Please be aware that both of these software packages 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 /usr/local/apache/conf/extra.

3. Open the httpd-vhosts.conf file using vi.

4. Locate the two VirtualHost examples and comment them both out by putting a pound sign in front of each line in the example.

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

<VirtualHost*:80>
ServerName www.example.biz
DocumentRoot /usr/local/apache/htdocs/examplebiz
<Directory /usr/local/apache/htdocs/examplebiz>
AuthType Basic
AuthName "Secret Files"
AuthUserFile /usr/local/apache/htdocs/passwd/passwords
Require valid-user
Allow from all
</Directory>
</VirtualHost>

<VirtualHost*:80>
ServerName www.example.aero
DocumentRoot /usr/local/apache/htdocs/exampleaero
<Directory /usr/local/apache/htdocs/exampleaero>
AuthType Basic
AuthName "Secret Files"
AuthUserFile /usr/local/apache/htdocs/passwd/passwords
Require valid-user
Allow from all
</Directory>
</VirtualHost>

6. Save and exit the file.

7. Navigate to /usr/local/apache/conf and open the httpd.conf file using vi.

8. Locate the Include conf/extra/httpd-vhosts.conf directive by searching for httpd-vhosts.

9. Uncomment this line by removing the pound sign.

10. Save and exit the httpd.conf file.

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

mkdir -p /usr/local/apache/htdocs/examplebiz
mkdir -p /usr/local/apache/htdocs/exampleaero
mkdir -p /usr/local/apache/htdocs/passwd

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

chowndaemon:daemon /usr/local/apache/htdocs/examplebiz
chowndaemon:daemon /usr/local/apache/htdocs/exampleaero

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.

13. Create default home pages for each Web site by navigating to each root directory, creating an index.html file, and entering the following code, as shown.

For examplebiz:

<html>
<head>
<title>test site example.biz</title>
</head>
<body>
<h1 align="center">
<font color="red">You have reached the example.biz site</font>
</h1>
</body>
</html>


For exampleaero:

<html>
<head>
<title>test site example.aero</title>
</head>
<body>
<h1 align="center">
<font color="red">You have reached the example.aero site</font>
</h1>
</body>
</html>

14. Create a user account using the following command:

htpasswd -c /usr/local/apache/htdocs/passwd/passwords lab8user

When prompted, enter a password for the account that you will remember.

15. Restart apache.

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

127.0.0.1 www.example.biz
127.0.0.1 www.example.aero

17. Navigate to your graphical user interface and open Firefox. Type www.example.biz in the Address text box and press Enter. You should see a login screen.

18. Enter lab8user and the password you assigned to that account when you created it. You should see the page that you created for the www.example.biz site.

19. Take a screen shot of the www.example.biz and paste it here.

20. Type www.example.aero in the Address text box and press Enter. You should see a login screen.

21. Enter lab8user and the password you assigned to that account when you created it. You should see the page that you created for the www.example.aero site.

22. Take a screen shot of the www.example.biz and paste it here.

Reference no: EM13873778

Questions Cloud

Organization and management of a health care facility : Organization and Management of a Health Care Facility
Rent the current machine and rent the advanced machine : Beryl’s Iced Tea currently rents a bottling machine for $55,000 per year, including all maintenance expenses. It is considering purchasing a machine instead, and is comparing two options: Purchase the machine it is currently renting for $150,000. Thi..
How does each affect net patient service revenue : How does each affect net patient service revenue? Would your answers be the same for a governmental hospital?
Accounts receivable under ifrs : Discuss the classification options for accounts receivable under IFRS.
Create default home pages for each web site : This lab is based on Apache 2.2.20 and above running on Fedora 14 and above. Please be aware that both of these software packages are updated regularly and that the updates may cause problems with this assignment
Provide a detailed summary hospital organizational structure : Provide a detailed summary hospital's organizational structure
What is hastings required return : Hastings Entertainment has a beta of 0.36. If the market return is expected to be 14 percent and the risk-free rate is 5.25 percent, what is Hastings’ required return? What would be the required return if beta increased to .80?
Which organizations establish gaap for not for profit : Which organizations establish GAAP for not for profit health care organizations? Do these organizations establish GAAP also for governmental health care organizations?
What was senbets operating cash flow and net income : Building an Income Statement during the year, the Senbet Discount Tire Company had gross sales of $1.06 million. The firm's cost of goods sold and selling expenses were $525,000 and $215,000, respectively. Senbet also had notes payable of $800,000. T..

Reviews

Write a Review

Web Project Questions & Answers

  Evaluate alternatives to the company self-hosting the site

Evaluate alternatives to the company self-hosting the site and Build a Gantt chart using Microsoft Project or equivalent software, showing all tasks associated with implementing the Website

  Explanation about driving rationale behind site structure

Create a new chapter in your design document called "Site Structure." Write a summary or metaphorical explanation about the driving rationale behind the site structure

  Project in it

To define the addressing scheme of the company XYZ network you will indicate: 1) The subnet mask selected, 2) the maximum number of subnets provided by the selected subnet mask, 3) the maximum number of hosts allowed for each subnet.

  Purpose of web accessibility standards

Discuss the purpose of Web accessibility standards and what role does the W3C play in developing the standards?

  Simple program that utilizes a good design process

Design a program that will allow a user to input a list of your family members along with their age and the state where they reside. Determine and print the average age of your family and print the names of anyone who lives in Texas.

  History of quality management web site

Develop a research proposal based on a business, organizational problem, or topic that you want to explore. History of quality management Web site and Total quality management information Web site

  Assignment on world-wide web application development

World-Wide Web Application Development, When the user clicks on add, you should make sure that a valid quantity has been entered, calculate the total price for that fish and display the fish, price, quantity as well as the line item price (price*q..

  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

  Creat and test an html documents that has at least half page

Creat and test an html documents that has at least a half page of text and a small box of text embedded on the left margin with main text flowing around the small box.

  Calculate total price based on the items in shopping cart

Calculate the total price based on the items in the shopping cart. If all items listed are purchased, take a 20% discount off the entire purchase

  Create the banner to say creating dynamic car objects

You will use the DynamicDogObject's HTML/JS/CSS files as templates - in order to create a set of new DynamicCarObject's HTML/JS/CSS files. Create the Banner to say "Creating Dynamic Car Objects"

  List and define the basic modules

Deliverables for the project/ draft. Project should be based on writing from a system analyst point of view and reading from a programmer point of view.

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