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

  Web to conduct research on recent computer-based attacks

Model an existing company or create one for this assignment. Thoroughly document a list of all information and/or documentation that you would need as the basis of a disaster recovery plan.

  Create a form that contains a guessing game

Create a Form that contains a guessing game with five RadioButtons numbered 1 through 5.  Randomly choose one of the RadioButtons as the winning button.

  Prepare the mobile site

You need to believe consistency is very important in web sites.  If you are consistent throughout your pages it is much simpler to navigate.  Not only is it easier to navigate but it makes viewing more friendly.

  What are the steps you have taken to maintain site

What are the steps you have taken to maintain and redesign your site over the past several weeks. How is the process that you followed similar to or different from how sites are maintained and redesigned in the professional environment

  Find recommendations for good design of web interfaces

Use a search engine to find recommendations for good design of Web interfaces. How are these recommendations similar to those discussed? How do they differ

  Project charter developing a corporate website

Project Charter Developing a Corporate Website- The projects' major objective is to create a website for Offex Corporate. The creation of a website is expected to enhance the sales of the corporate in its business which is to trade office equipment..

  Create a storyboard diagram depicting the layout of website

Create a storyboard diagram depicting the layout of your Website and Create a narrative that describes the site to your prospective client

  Question about saving a project

Assume that you have been assigned to save a project that is already over budget and past due. The assignment is still only half done.

  Create a web service api

Can someone please help me create a Web Service API for the following case using Eclipse with Apache and CXF installed

  Improve the website for cse

You need to improve the website for CSE Center for Health Information Technology to make it more functional and informational.

  Create website prototype for tee-shirts sales using html

Create a 3-page website prototype for tee-shirts sales using HTML 5, CSS, and JavaScript languages. Ch. 8 of Programming With Mobile Applicationsdiscusses a variety of web development tools. All program files should be in a ZIP file for submission..

  Build the web site for flyhigh

Build the web site for FlyHigh including the following content: Specific trip information travelers need to plan their ( costs, accommodations, options , and so on) and Information international customers will need ( passports , visas, vaccination..

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