Lab 10, Part 2, 20-21
-
- Posts: 118
- Joined: Wed Sep 05, 2012 5:07 pm
Lab 10, Part 2, 20-21
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?
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?
-
- Posts: 118
- Joined: Wed Sep 05, 2012 5:07 pm
Re: Lab 10, Part 2, 20-21
Just a clarification: It's my sauron browser I'm referring to
-
- Posts: 118
- Joined: Wed Sep 05, 2012 5:07 pm
Re: Lab 10, Part 2, 20-21
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.
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.
- Rich Simms
- Posts: 2421
- Joined: Sat Jan 16, 2010 5:47 pm
- Contact:
Re: Lab 10, Part 2, 20-21
I don't think your VirtualHosts will work without the carriage returns. Try changing:
to
- Rich
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>
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>
-
- Posts: 118
- Joined: Wed Sep 05, 2012 5:07 pm
Re: Lab 10, Part 2, 20-21
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
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
- Rich Simms
- Posts: 2421
- Joined: Sat Jan 16, 2010 5:47 pm
- Contact:
Re: Lab 10, Part 2, 20-21
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
- Rich