Skip to content

Commit 7a5fd46

Browse files
committed
Adding example of web server and web browser request-response cycle.
1 parent 0ee6193 commit 7a5fd46

File tree

10 files changed

+49
-16
lines changed

10 files changed

+49
-16
lines changed

feeds/all.atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<feed xmlns="http://www.w3.org/2005/Atom"><title>Matt Makai</title><link href="http://www.fullstackpython.com/" rel="alternate"></link><link href="http://www.fullstackpython.com/feeds/all.atom.xml" rel="self"></link><id>http://www.fullstackpython.com/</id><updated>2013-01-04T16:42:16Z</updated></feed>
2+
<feed xmlns="http://www.w3.org/2005/Atom"><title>Matt Makai</title><link href="http://www.fullstackpython.com/" rel="alternate"></link><link href="http://www.fullstackpython.com/feeds/all.atom.xml" rel="self"></link><id>http://www.fullstackpython.com/</id><updated>2013-01-04T17:15:39Z</updated></feed>

img/web-server-web-browser.jpg

195 KB
Loading

index.html

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ <h1>Introduction</h1>
6666
more.</p>
6767
<p>Now what? Definitely read Kenneth Reitz's
6868
<a class="reference external" href="http://docs.python-guide.org/en/latest/">The Hitchhiker’s Guide to Python</a>
69-
if you have not already. If you're not coming from a development
70-
background, you may find this post on
69+
If you're not coming from a development background, you may find this post on
7170
<a class="reference external" href="http://www.mattmakai.com/learning-python-for-non-developers.html">Learning Python</a>
7271
useful.</p>
7372
<p>This guide has a different focus from the above resources. Here I
@@ -224,6 +223,10 @@ <h2>Monitoring</h2>
224223
<li>Persistence storage consumed versus free</li>
225224
<li>Network bandwidth and latency</li>
226225
</ol>
226+
</div>
227+
<div class="section" id="operating-system-resources">
228+
<h2>Operating System Resources</h2>
229+
<p><a class="reference external" href="http://www.andrewault.net/2010/05/17/securing-an-ubuntu-server/">Securing an Ubuntu Server</a></p>
227230
</div>
228231

229232
</section>
@@ -243,12 +246,20 @@ <h1>Web Server</h1>
243246
file and the file has not changed, the web server will pass back a 304
244247
&quot;Not modified&quot; response indicating the client already has the latest version
245248
of that file.</p>
246-
<p>Sending static assets can eat up a large amount of bandwidth which is why
247-
using a Content Delivery Network (CDN) is important when possible (see the
248-
content delivery network section for a more detailed explanation).</p>
249+
<img alt="Web server and web browser request-response cycles" src="../img/web-server-web-browser.jpg" />
250+
<p>A web server sends files to a web browser based on the web browser's
251+
request. In the first request, the browser accessed the &quot;www.example.com&quot;
252+
address and the server responded with the index.html HTML-formatted file.
253+
That HTML file contained references to other files, such as style.css and
254+
script.js that the browser then requested from the server.</p>
255+
<p>Sending static assets (such as CSS and JavaScript files) can eat up a
256+
large amount of bandwidth which is why using a Content Delivery Network
257+
(CDN) is important when possible (see the content delivery network
258+
section for a more detailed explanation).</p>
249259
<div class="section" id="web-server-resources">
250260
<h2>Web Server Resources</h2>
251261
<p><a class="reference external" href="http://library.linode.com/web-servers/apache/mod-wsgi/ubuntu-10.04-lucid">Apache and mod_wsgi on Ubuntu 10.04</a></p>
262+
<p><a class="reference external" href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html">HTTP Status Codes</a></p>
252263
</div>
253264

254265
</section>

pages/introduction.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ <h1>Introduction</h1>
5151
more.</p>
5252
<p>Now what? Definitely read Kenneth Reitz's
5353
<a class="reference external" href="http://docs.python-guide.org/en/latest/">The Hitchhiker’s Guide to Python</a>
54-
if you have not already. If you're not coming from a development
55-
background, you may find this post on
54+
If you're not coming from a development background, you may find this post on
5655
<a class="reference external" href="http://www.mattmakai.com/learning-python-for-non-developers.html">Learning Python</a>
5756
useful.</p>
5857
<p>This guide has a different focus from the above resources. Here I

pages/operating-system.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ <h2>Monitoring</h2>
8383
<li>Persistence storage consumed versus free</li>
8484
<li>Network bandwidth and latency</li>
8585
</ol>
86+
</div>
87+
<div class="section" id="operating-system-resources">
88+
<h2>Operating System Resources</h2>
89+
<p><a class="reference external" href="http://www.andrewault.net/2010/05/17/securing-an-ubuntu-server/">Securing an Ubuntu Server</a></p>
8690
</div>
8791

8892
<hr/>

pages/web-server.html

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,20 @@ <h1>Web Server</h1>
5959
file and the file has not changed, the web server will pass back a 304
6060
&quot;Not modified&quot; response indicating the client already has the latest version
6161
of that file.</p>
62-
<p>Sending static assets can eat up a large amount of bandwidth which is why
63-
using a Content Delivery Network (CDN) is important when possible (see the
64-
content delivery network section for a more detailed explanation).</p>
62+
<img alt="Web server and web browser request-response cycles" src="../img/web-server-web-browser.jpg" />
63+
<p>A web server sends files to a web browser based on the web browser's
64+
request. In the first request, the browser accessed the &quot;www.example.com&quot;
65+
address and the server responded with the index.html HTML-formatted file.
66+
That HTML file contained references to other files, such as style.css and
67+
script.js that the browser then requested from the server.</p>
68+
<p>Sending static assets (such as CSS and JavaScript files) can eat up a
69+
large amount of bandwidth which is why using a Content Delivery Network
70+
(CDN) is important when possible (see the content delivery network
71+
section for a more detailed explanation).</p>
6572
<div class="section" id="web-server-resources">
6673
<h2>Web Server Resources</h2>
6774
<p><a class="reference external" href="http://library.linode.com/web-servers/apache/mod-wsgi/ubuntu-10.04-lucid">Apache and mod_wsgi on Ubuntu 10.04</a></p>
75+
<p><a class="reference external" href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html">HTTP Status Codes</a></p>
6876
</div>
6977

7078
<hr/>

source/content/pages/introduction.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ more.
1212

1313
Now what? Definitely read Kenneth Reitz's
1414
`The Hitchhiker’s Guide to Python <http://docs.python-guide.org/en/latest/>`_
15-
if you have not already. If you're not coming from a development
16-
background, you may find this post on
15+
If you're not coming from a development background, you may find this post on
1716
`Learning Python <http://www.mattmakai.com/learning-python-for-non-developers.html>`_
1817
useful.
1918

source/content/pages/web-server.rst

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,24 @@ file and the file has not changed, the web server will pass back a 304
2121
"Not modified" response indicating the client already has the latest version
2222
of that file.
2323

24-
Sending static assets can eat up a large amount of bandwidth which is why
25-
using a Content Delivery Network (CDN) is important when possible (see the
26-
content delivery network section for a more detailed explanation).
24+
25+
.. image:: ../img/web-server-web-browser.jpg
26+
:alt: Web server and web browser request-response cycles
27+
28+
A web server sends files to a web browser based on the web browser's
29+
request. In the first request, the browser accessed the "www.example.com"
30+
address and the server responded with the index.html HTML-formatted file.
31+
That HTML file contained references to other files, such as style.css and
32+
script.js that the browser then requested from the server.
33+
34+
Sending static assets (such as CSS and JavaScript files) can eat up a
35+
large amount of bandwidth which is why using a Content Delivery Network
36+
(CDN) is important when possible (see the content delivery network
37+
section for a more detailed explanation).
2738

2839

2940
Web Server Resources
3041
--------------------
3142
`Apache and mod_wsgi on Ubuntu 10.04 <http://library.linode.com/web-servers/apache/mod-wsgi/ubuntu-10.04-lucid>`_
3243

44+
`HTTP Status Codes <http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html>`_
195 KB
Loading
195 KB
Loading

0 commit comments

Comments
 (0)