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

  Explain the different types of interactive environments

Describe the differences in developing user interfaces for different application environments. Compare and contrast the different types of interactive environments.

  Project management skills and formal and informal project

Project Management Skills and Formal and Informal Project Management

  Explains how to use active content in apache web servers

Explains how to use active content in Apache Web servers - installing Apache on Fedora, installing Apache in Windows Server 2008, and adding IIS to Windows Server 2008 as a role.

  Time taken to get website page with embedded images

Assume you click on a link within your browser to get a Web page. The IP address for the associated URL is not cached in your local host, so a DNS look up is required to obtain the IP address.

  Explain the necessity for configuring a radius server

Prepare a 3-5-page report to Jan and Kim that includes the following: Explain the necessity for configuring a RADIUS server in their office. Explain the benefits of installing a RADIUS server in their office

  Create web-based interface running on another server

Car Rental USA hired you as a consultant. They are building an in-house application system that will pull data from a database located on one server, and display it via a Web-based interface running on another server. What are security issues t..

  Computer program stored on world wide web server

Identify a small computer program stored on a World Wide Web server that is designed to run in conjunction with browser software called?

  Wikileaks fuels data breach fears

Prepare a project report on WikiLeaks fuels data breach fears.

  Patient portal project charter

While Panther Memorial has implemented an electronic medical record (EMR), our patients have never been provided with a patient portal.

  Risk management consulting assignment

Provision of organization data and access on an organizational website, Risk Management Consulting assignment

  Project budgeting estimating

You must submit both sections as separate files for the completion of this assignment. Label each file name according to the section of the assignment for which it is written. Additionally, you may create and / or assume all necessary assumptions ..

  Create a webpage for an overview of poverty

Create a page including section headings for an Overview of Poverty, Support, and Resources. Be sure to link the page to the homepage.

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