Skip to content

Commit

Permalink
Update doc/httptut.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
René committed Jul 26, 2012
1 parent 0fe20b7 commit 3096921
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions doc/httptut.rst
Expand Up @@ -59,16 +59,17 @@ Then we will write the simple python script which would make this work::
uri, = sock.recv_multipart()
sock.send_multipart([b'Hello from '+uri])

This is everything which is needed to serve requests.
Note we are connecting to the address you specified to bind to in zerogw.yaml.
Next start zerowg and use -c for the configuration file we want to use:
Next start ther zerowg server and use -c for the configuration file we have written:

``zerogw -c ./zerogw.yaml``

Open a new terminal and start your python script:

``python ./ourserver.py``

This is everything which is needed to serve requests.
Note we are connecting to the address you specified to bind to in zerogw.yaml.

Now you can go to the browser at http://localhost:8080/ and you should
see ``Hello from /``.

Expand Down

0 comments on commit 3096921

Please sign in to comment.