|
UrlBlogMapping
Describes how a URL is mapped to a blog.
Phase-Design IntroductionThe manner in which Subtext maps a request to the final rendered output is worth describing in detail. Because Subtext supports multiple blogs in a single installation, it must map the incoming request URL to a specific blog instance. This document describes how this is done. For a more detailed look at how requests render a page, see the RequestLifecycle documentation. Anatomy of a Blog URLIf you've visited the host admin and edited a blog, you'll notice that the URL to the blog is represented like so: http://example.com/Subtext.Web/blog/default.aspx This is the example of an URL when Subtext is configured to run in a Virtual Application in IIS. In this case...
If IIS is configured to run Subtext in a webroot (most likely matching your production setup), then the URL would look more like: http://example.com/blog/default.aspx In which case...
In both the above examples, the blog is configured with a subfolder named blog, which is one common way many configure their blogs. However, a blog can decide to be in the host domain root rather than a subfolder as in this URL: http://example.com/default.aspx In which case...
Examples in a tabular form:
In the Host Admin tool, this is configured by editing the blog and setting the values as in the image below: // TODO: Insert screen showing the editing of a blog in the Host Admin Figure 1: Host Admin editing a blog's setting. Host Domain ParsingWhen an incoming request arrives, Subtext first parses the host and looks up blogs (in table subtext_Config) that have a matching host value. The query below is a simplified version of the one Subtext runs. (NOTE: The Application column corresponds to the Subfolder in the Host Admin. We did not change the column name yet.) SELECT BlogId, Host, Application FROM subtext_Config If only one blog is found, it will assume that the record corresponds to the incoming request. If multiple blogs match, then Subtext has a little bit more work to do. The results of such a request might look like so: // TODO: Insert screen showing blog records Figure 2: Two blogs with the same host. It then tries to parse out the subfolder of the incoming request by looking at the part after the host name. Application Path ParsingIn the case of a blog installation within a virtual application, Subtext knows to look at the part of the URL after the application portion. For example, on a local install of Subtext on Windows XP within the Subtext.Web virtual application, Subtext knows to look for the subfolder value after the Application value which is obtained via HttpContext.Current.Request.ApplicationPath. Thus in the above example of an incoming request with the following URL: http://localhost/Subtext.Web/blog/default.aspx Subtext is able to figure out that the subfolder name is blog and is thus a request for the blog with the id of 1 and NOT the blog with an id of 2. Subtext then parses the rest of the URL to figure out what page exactly is being requested. See RequestLifecycle for more detail on that. Potential Blog ConflictsSuppose Subtext receives an incoming request like so: http://example.com/blog2/default.aspx ...but Subtext has the following two blogs configured: // TODO: Insert screen showing two blog records, both with the same host name, but one with an empty subfolder name. Figure 3: Two blogs with the same host, but one with no subfolder value. At first glance, it seems obvious that we would select the blog with the id of 2. But we cannot be sure this is correct. What if the first blog has a physical subfolder named Blog2? How can we be sure the request is not for a file in that folder? At the moment, Subtext does not allow for such a configuration. If two blogs have the same host name, they must have non-empty distinct Subfolder values. Blogs With Different Host NamesSubtext supports any number of blogs with different host names. Two blogs with different host names do not have the restriction that both have non-empty Subfolder values. As an example, here is a list of several blog records within a single installation of Subtext that are all valid. // TODO: Insert screen showing Multiple valid blogs within the same installation of Subtext. Figure 4: Multiple valid blogs within the same installation of Subtext. Notice that even though the first two blogs have the same subfolder value (in the application column), that is fine because they have different host names. Likewise, it is fine that the haack.org blog does not have an application value defined because it is the only blog with the host name of haack.org. | |||||||||||||||||||||||||
We wholesle many styles of <a href="http://blog.bodybuilding.com">bodybuilding</a>.They are very comfotable and easy to macth with all kinds of clothes. We wholesle many styles of <a href= http://blog.bodybuilding.com/>bodybuilding</a>.They are very comfotable and easy to macth with all kinds of clothes. [url= http://blog.bodybuilding.com/]bodybuilding[/url] are very suitable for men who like doing sport.
We wholesle many styles of bodybuilding.They are very comfotable and easy to macth with all kinds of clothes.
If you are looking to increase muscle mass and keep your body healthy, you may want to look into vitamin supplements. When I was wrestling in high school I constantly ran low on Iron and Zinc causing me to have constant nosebleeds and slow injury recovery time. Vitamin supplements can help you avoid this. (http://www.onlinesidewalkmall.com)
Thank you for sharing this information! I feel that every blog could use some form of post workout shake, like reviews and page buffs. I'm sure it wouldn't hurt. http://www.criticalreload.com
Thanks for that marvelous blog posting! I really enjoyed reading it, you are a great writer. I actually added your blog to my favorites and come back soon. Keep up the exciting work, I hope you will have a nice daytime!http://www.charmsabouk.com
Whats with all the pro bodybuilding supplements references? I'm confused! http://www.czsupplements.com/
So many bodybuilding references and nothing about forearm workouts? Quite frankly I'm shocked. http://chetshealthcare.com/Exercise-Equipment/Forearm-Trainer/130.html
McCleve?, if you are looking for a workout, I would suggest the p90x program. I just started it this last week and it's really intense. I thought I was in really good shape, but after trying the program, there are definitely things I need to improve on.
http://www.Extremely-fit.com