summaryrefslogtreecommitdiffstats
path: root/Doc/library/http.server.rst
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2012-06-03 08:15:54 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2012-06-03 08:15:54 (GMT)
commit1251fafcc57091d952bb1cc9b1e1a77f39c59b7b (patch)
tree9c769f7853d95b57d296f4220006d6aeb807cca5 /Doc/library/http.server.rst
parentc68e1368b52eb3b6b192593b988e882579827694 (diff)
downloadcpython-1251fafcc57091d952bb1cc9b1e1a77f39c59b7b.zip
cpython-1251fafcc57091d952bb1cc9b1e1a77f39c59b7b.tar.gz
cpython-1251fafcc57091d952bb1cc9b1e1a77f39c59b7b.tar.bz2
Issue 14989: http.server --cgi option can enable the CGI http server.
Diffstat (limited to 'Doc/library/http.server.rst')
-rw-r--r--Doc/library/http.server.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/http.server.rst b/Doc/library/http.server.rst
index d947ed2..04ec746 100644
--- a/Doc/library/http.server.rst
+++ b/Doc/library/http.server.rst
@@ -400,3 +400,9 @@ the previous example, this serves files relative to the current directory. ::
Note that CGI scripts will be run with UID of user nobody, for security
reasons. Problems with the CGI script will be translated to error 403.
+
+:class:`CGIHTTPRequestHandler` can be enabled in the command line by passing
+the ``--cgi`` option.::
+
+ python -m http.server --cgi 8000
+