Lab 10, Part 2, 20-21

UNIX/Linux Network Administration - Rich Simms
Locked
shahram farahbakhsh
Posts: 118
Joined: Wed Sep 05, 2012 5:07 pm

Lab 10, Part 2, 20-21

Post by shahram farahbakhsh » Sun May 26, 2013 7:29 pm

http://remus-farm
http://holy-grail.rivendell
http://192.168.16.99

Those three addresses were valid on my browser. However the webpages didn't show my customized titles, headers, or pictures even though I edited them in
http://remus-farm/index.html
http://holy-grail/index.html

Are the customized pages supposed to show by the time Part 2, Step 21 is reached?

shahram farahbakhsh
Posts: 118
Joined: Wed Sep 05, 2012 5:07 pm

Re: Lab 10, Part 2, 20-21

Post by shahram farahbakhsh » Sun May 26, 2013 7:30 pm

Just a clarification: It's my sauron browser I'm referring to

shahram farahbakhsh
Posts: 118
Joined: Wed Sep 05, 2012 5:07 pm

Re: Lab 10, Part 2, 20-21

Post by shahram farahbakhsh » Sun May 26, 2013 8:38 pm

More clarification:

The websites show that the Apache http Server has been installed successfully.

However, the websites show that they are experiencing problems or undergoing routine maintenance.

User avatar
Rich Simms
Posts: 2421
Joined: Sat Jan 16, 2010 5:47 pm
Contact:

Re: Lab 10, Part 2, 20-21

Post by Rich Simms » Sun May 26, 2013 8:41 pm

I don't think your VirtualHosts will work without the carriage returns. Try changing:

Code: Select all

<VirtualHost 192.168.16.1> ServerName remus-farm.rivendell DocumentRoot /www/remus-farm
</VirtualHost>
<VirtualHost 192.168.16.1> ServerName holy-grail.rivendell DocumentRoot /www/holy-grail
</VirtualHost>
to

Code: Select all

<VirtualHost 192.168.16.1>
   ServerName remus-farm.rivendell
   DocumentRoot /www/remus-farm
</VirtualHost>

<VirtualHost 192.168.16.1>
   ServerName holy-grail.rivendell
   DocumentRoot /www/holy-grail
</VirtualHost>
- Rich

shahram farahbakhsh
Posts: 118
Joined: Wed Sep 05, 2012 5:07 pm

Re: Lab 10, Part 2, 20-21

Post by shahram farahbakhsh » Sun May 26, 2013 9:31 pm

Thanks Rich. I can see the customized headers and pictures on the websites now.

holy-grail shows the remus-farm website, but holy-grail.rivendell shows what is expected.

I don't think this is an aberration, but am still ascertaining why

User avatar
Rich Simms
Posts: 2421
Joined: Sat Jan 16, 2010 5:47 pm
Contact:

Re: Lab 10, Part 2, 20-21

Post by Rich Simms » Sun May 26, 2013 11:05 pm

It is comparing the URL typed in the browser with the ServerNames specified in your VirtualHost declarations. If it is not a perfect match (like the string "holy-grail" does not match the string "holy-grail.rivendell") then it will serve the first VirtualHost as the default page. Since you defined remus-farm as your first VirtualHost it will be used for the exact match "remus-farm.rivendell" and for all non-matches.

- Rich

Locked

Return to “CIS 192 - Spring 2013”