Skip to content

Commit 15bf93a

Browse files
committed
updating web servers and wsgi servers pages
1 parent 9f072be commit 15bf93a

8 files changed

Lines changed: 112 additions & 99 deletions

File tree

all.html

Lines changed: 43 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -4244,22 +4244,27 @@ <h2>Web server resources</h2>
42444244
</li>
42454245
</ul>
42464246
<h2>Web servers learning checklist</h2>
4247-
<p><i class="fa fa-check-square-o"></i>
4248-
Choose a web server. <a href="http://nginx.org/en/">Nginx</a> is recommended although
4249-
<a href="http://httpd.apache.org/">Apache</a> is also a great choice.</p>
4250-
<p><i class="fa fa-check-square-o"></i>
4251-
Create an SSL certificate. For testing use a self-signed certificate and for a
4252-
production app buy one from <a href="http://www.digicert.com/">Digicert</a>. Configure
4253-
the web server to serve traffic over SSL. You'll need SSL for serving only
4254-
HTTPS traffic and preventing security issues that occur with unencrypted user
4255-
input.</p>
4256-
<p><i class="fa fa-check-square-o"></i>
4257-
Configure the web server to serve up static files such as CSS, JavaScript
4258-
and images.</p>
4259-
<p><i class="fa fa-check-square-o"></i>
4260-
Once you set up the <a href="/wsgi-servers.html">WSGI server</a> you'll need to configure
4261-
the web server as a pass through for dynamic content.</p>
4262-
<h3>What do you want to learn after the web server is set up?</h3>
4247+
<ol>
4248+
<li>
4249+
<p>Choose a web server. <a href="http://nginx.org/en/">Nginx</a> is often recommended
4250+
although <a href="http://httpd.apache.org/">Apache</a> is also a great choice.</p>
4251+
</li>
4252+
<li>
4253+
<p>Create an SSL certificate. For testing use a self-signed certificate
4254+
and for a production app buy one from <a href="http://www.digicert.com/">Digicert</a>.
4255+
Configure the web server to serve traffic over SSL. You'll need SSL for
4256+
serving only HTTPS traffic and preventing security issues that occur with
4257+
unencrypted user input.</p>
4258+
</li>
4259+
<li>
4260+
<p>Configure the web server to serve up static files such as CSS, JavaScript
4261+
and images.</p>
4262+
</li>
4263+
<li>
4264+
<p>Once you set up the <a href="/wsgi-servers.html">WSGI server</a> you'll need to
4265+
configure the web server as a pass through for dynamic content.</p>
4266+
</li>
4267+
</ol>
42634268
<h1>WSGI Servers</h1>
42644269
<p>A <a href="http://wsgi.readthedocs.org/en/latest/">Web Server Gateway Interface</a>
42654270
(WSGI) server implements the web server side of the WSGI interface for
@@ -4468,22 +4473,28 @@ <h2>WSGI resources</h2>
44684473
</li>
44694474
</ul>
44704475
<h2>WSGI servers learning checklist</h2>
4471-
<p><i class="fa fa-check-square-o"></i>
4472-
Understand that WSGI is a standard Python specification for applications and
4473-
servers to implement. </p>
4474-
<p><i class="fa fa-check-square-o"></i>
4475-
Pick a WSGI server based on available documentation and tutorials. Green
4476-
Unicorn is a good one to start with since it's been around for awhile.</p>
4477-
<p><i class="fa fa-check-square-o"></i>
4478-
Add the WSGI server to your server deployment.</p>
4479-
<p><i class="fa fa-check-square-o"></i>
4480-
Configure the web server to pass requests to the WSGI server for appropriate
4481-
URL patterns.</p>
4482-
<p><i class="fa fa-check-square-o"></i>
4483-
Test that the WSGI server responds to local requests but not direct requests
4484-
outside your infrastructure. The web server should be the pass through for
4485-
requests to and responses from the WSGI server.</p>
4486-
<h3>What's next after your Python code is running?</h3>
4476+
<ol>
4477+
<li>
4478+
<p>Understand that WSGI is a standard Python specification for applications
4479+
and servers to implement. </p>
4480+
</li>
4481+
<li>
4482+
<p>Pick a WSGI server based on available documentation and tutorials. Green
4483+
Unicorn is a good one to start with since it's been around for awhile.</p>
4484+
</li>
4485+
<li>
4486+
<p>Add the WSGI server to your server deployment.</p>
4487+
</li>
4488+
<li>
4489+
<p>Configure the web server to pass requests to the WSGI server for
4490+
appropriate URL patterns.</p>
4491+
</li>
4492+
<li>
4493+
<p>Test that the WSGI server responds to local requests but not direct
4494+
requests outside your infrastructure. The web server should be the pass
4495+
through for requests to and responses from the WSGI server.</p>
4496+
</li>
4497+
</ol>
44874498
<h1>Source control</h1>
44884499
<p>Source control, also known as <em>version control</em>, stores software code files
44894500
with a detailed history of every modification made to those files.</p>

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>2015-05-30T14:23:33Z</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>2015-05-31T13:47:14Z</updated></feed>

source/content/pages/07-web-app-deployment/06-web-servers.markdown

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -102,24 +102,18 @@ is provided by W3C.
102102

103103

104104
## Web servers learning checklist
105-
<i class="fa fa-check-square-o"></i>
106-
Choose a web server. [Nginx](http://nginx.org/en/) is recommended although
107-
[Apache](http://httpd.apache.org/) is also a great choice.
105+
1. Choose a web server. [Nginx](http://nginx.org/en/) is often recommended
106+
although [Apache](http://httpd.apache.org/) is also a great choice.
108107

109-
<i class="fa fa-check-square-o"></i>
110-
Create an SSL certificate. For testing use a self-signed certificate and for a
111-
production app buy one from [Digicert](http://www.digicert.com/). Configure
112-
the web server to serve traffic over SSL. You'll need SSL for serving only
113-
HTTPS traffic and preventing security issues that occur with unencrypted user
114-
input.
108+
1. Create an SSL certificate. For testing use a self-signed certificate
109+
and for a production app buy one from [Digicert](http://www.digicert.com/).
110+
Configure the web server to serve traffic over SSL. You'll need SSL for
111+
serving only HTTPS traffic and preventing security issues that occur with
112+
unencrypted user input.
115113

116-
<i class="fa fa-check-square-o"></i>
117-
Configure the web server to serve up static files such as CSS, JavaScript
118-
and images.
114+
1. Configure the web server to serve up static files such as CSS, JavaScript
115+
and images.
119116

120-
<i class="fa fa-check-square-o"></i>
121-
Once you set up the [WSGI server](/wsgi-servers.html) you'll need to configure
122-
the web server as a pass through for dynamic content.
117+
1. Once you set up the [WSGI server](/wsgi-servers.html) you'll need to
118+
configure the web server as a pass through for dynamic content.
123119

124-
125-
### What do you want to learn after the web server is set up?

source/content/pages/07-web-app-deployment/07-wsgi-servers.markdown

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -209,25 +209,18 @@ The following are WSGI servers based on community recommendations.
209209

210210

211211
## WSGI servers learning checklist
212-
<i class="fa fa-check-square-o"></i>
213-
Understand that WSGI is a standard Python specification for applications and
214-
servers to implement.
212+
1. Understand that WSGI is a standard Python specification for applications
213+
and servers to implement.
215214

216-
<i class="fa fa-check-square-o"></i>
217-
Pick a WSGI server based on available documentation and tutorials. Green
218-
Unicorn is a good one to start with since it's been around for awhile.
215+
1. Pick a WSGI server based on available documentation and tutorials. Green
216+
Unicorn is a good one to start with since it's been around for awhile.
219217

220-
<i class="fa fa-check-square-o"></i>
221-
Add the WSGI server to your server deployment.
218+
1. Add the WSGI server to your server deployment.
222219

223-
<i class="fa fa-check-square-o"></i>
224-
Configure the web server to pass requests to the WSGI server for appropriate
225-
URL patterns.
220+
1. Configure the web server to pass requests to the WSGI server for
221+
appropriate URL patterns.
226222

227-
<i class="fa fa-check-square-o"></i>
228-
Test that the WSGI server responds to local requests but not direct requests
229-
outside your infrastructure. The web server should be the pass through for
230-
requests to and responses from the WSGI server.
223+
1. Test that the WSGI server responds to local requests but not direct
224+
requests outside your infrastructure. The web server should be the pass
225+
through for requests to and responses from the WSGI server.
231226

232-
233-
### What's next after your Python code is running?

source/theme/templates/choices/web-servers.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<h3>What do you want to learn after the web server is configured?</h3>
12
<div class="row">
23
<div class="col-md-4">
34
<div class="well select-next">

source/theme/templates/choices/wsgi-servers.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<h3>What's next after your Python app is running?</h3>
12
<div class="row">
23
<div class="col-md-4">
34
<div class="well select-next">

web-servers.html

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -134,22 +134,28 @@ <h2>Web server resources</h2>
134134
</li>
135135
</ul>
136136
<h2>Web servers learning checklist</h2>
137-
<p><i class="fa fa-check-square-o"></i>
138-
Choose a web server. <a href="http://nginx.org/en/">Nginx</a> is recommended although
139-
<a href="http://httpd.apache.org/">Apache</a> is also a great choice.</p>
140-
<p><i class="fa fa-check-square-o"></i>
141-
Create an SSL certificate. For testing use a self-signed certificate and for a
142-
production app buy one from <a href="http://www.digicert.com/">Digicert</a>. Configure
143-
the web server to serve traffic over SSL. You'll need SSL for serving only
144-
HTTPS traffic and preventing security issues that occur with unencrypted user
145-
input.</p>
146-
<p><i class="fa fa-check-square-o"></i>
147-
Configure the web server to serve up static files such as CSS, JavaScript
148-
and images.</p>
149-
<p><i class="fa fa-check-square-o"></i>
150-
Once you set up the <a href="/wsgi-servers.html">WSGI server</a> you'll need to configure
151-
the web server as a pass through for dynamic content.</p>
152-
<h3>What do you want to learn after the web server is set up?</h3>
137+
<ol>
138+
<li>
139+
<p>Choose a web server. <a href="http://nginx.org/en/">Nginx</a> is often recommended
140+
although <a href="http://httpd.apache.org/">Apache</a> is also a great choice.</p>
141+
</li>
142+
<li>
143+
<p>Create an SSL certificate. For testing use a self-signed certificate
144+
and for a production app buy one from <a href="http://www.digicert.com/">Digicert</a>.
145+
Configure the web server to serve traffic over SSL. You'll need SSL for
146+
serving only HTTPS traffic and preventing security issues that occur with
147+
unencrypted user input.</p>
148+
</li>
149+
<li>
150+
<p>Configure the web server to serve up static files such as CSS, JavaScript
151+
and images.</p>
152+
</li>
153+
<li>
154+
<p>Once you set up the <a href="/wsgi-servers.html">WSGI server</a> you'll need to
155+
configure the web server as a pass through for dynamic content.</p>
156+
</li>
157+
</ol>
158+
<h3>What do you want to learn after the web server is configured?</h3>
153159
<div class="row">
154160
<div class="col-md-4">
155161
<div class="well select-next">

wsgi-servers.html

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -242,22 +242,29 @@ <h2>WSGI resources</h2>
242242
</li>
243243
</ul>
244244
<h2>WSGI servers learning checklist</h2>
245-
<p><i class="fa fa-check-square-o"></i>
246-
Understand that WSGI is a standard Python specification for applications and
247-
servers to implement. </p>
248-
<p><i class="fa fa-check-square-o"></i>
249-
Pick a WSGI server based on available documentation and tutorials. Green
250-
Unicorn is a good one to start with since it's been around for awhile.</p>
251-
<p><i class="fa fa-check-square-o"></i>
252-
Add the WSGI server to your server deployment.</p>
253-
<p><i class="fa fa-check-square-o"></i>
254-
Configure the web server to pass requests to the WSGI server for appropriate
255-
URL patterns.</p>
256-
<p><i class="fa fa-check-square-o"></i>
257-
Test that the WSGI server responds to local requests but not direct requests
258-
outside your infrastructure. The web server should be the pass through for
259-
requests to and responses from the WSGI server.</p>
260-
<h3>What's next after your Python code is running?</h3>
245+
<ol>
246+
<li>
247+
<p>Understand that WSGI is a standard Python specification for applications
248+
and servers to implement. </p>
249+
</li>
250+
<li>
251+
<p>Pick a WSGI server based on available documentation and tutorials. Green
252+
Unicorn is a good one to start with since it's been around for awhile.</p>
253+
</li>
254+
<li>
255+
<p>Add the WSGI server to your server deployment.</p>
256+
</li>
257+
<li>
258+
<p>Configure the web server to pass requests to the WSGI server for
259+
appropriate URL patterns.</p>
260+
</li>
261+
<li>
262+
<p>Test that the WSGI server responds to local requests but not direct
263+
requests outside your infrastructure. The web server should be the pass
264+
through for requests to and responses from the WSGI server.</p>
265+
</li>
266+
</ol>
267+
<h3>What's next after your Python app is running?</h3>
261268
<div class="row">
262269
<div class="col-md-4">
263270
<div class="well select-next">

0 commit comments

Comments
 (0)