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

  Evaluating an ecommerce website

Create a check list that contains key point for evaluating an ecommerce website - Write a short, reflective report about website

  Gpc and runtime magic quotes

Create a script that lets you know whether Zeus or Helios has the GPC and Runtime Magic Quotes turned on or off. The output should have appropriate labels that define what output signified and should display 'ON' or 'OFF' depending on the setting.

  Creating functions through conditional operator

Use the conditional operator and the cal_days_in_month function, determine the number of days in the current month and output to browser whether it is normal month or a leap month.

  Web development projects with database

Since the vast majority of web-development projects involve a database, do you think that computational activities should be performed there, or do you think they belong in the XML page or stylesheet?

  Comparing shelf software packages

Required assistance with comparing and contrasting two main off the shelf software packages that could be implemented in an organization.

  Web based scams

Web phishing, pharming and vishing are popular web based scams. Talk about currently used tools and recommended measures to defeat this kind of attacks efficiently?

  Explanation of contextual links

The most powerful hypertext capabilities is the the contextual link. Wikipedia . com is a great example of a site that utilizes contextual links.

  How architectural and protocol changes occur

Discuss how architectural and protocol changes happen, the administrative organization that oversees the technical development of the Internet,

  Traditional approaches for training professionals

Webinars and other web conferencing techniques have proved most beneficial for the provision of affordable quality corporate training.

  Internet for business

Discuss how can a business use the Internet and give at least three examples with web links demonstrating your answer.

  It influences the behavior of organizations

Information technology influences the behavior of organizations. Name one effect of Information technology implementation and long-term usage you suppose having a positive contribution and one having a negative consequence.

  Importance of a guided navigation system

Explain the use and importance of a guided navigation system and shopping cart for a website designed for e-commerce and business purpose.

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