diff options
author | Olivier Gayot <duskcoder@gmail.com> | 2015-01-16 03:02:30 +0100 |
---|---|---|
committer | Olivier Gayot <duskcoder@gmail.com> | 2015-01-16 03:02:30 +0100 |
commit | 0716db592d670d2d08d72ac21d8fa77049a1f0fd (patch) | |
tree | 559cd55f916c1f0aa84f02ad9db28821069a00a9 | |
parent | 78c876b933b3f7a7d44f72aecdcc097bb0e354ab (diff) |
use examples blocks provided by asciidoc
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
-rw-r--r-- | apache.adoci | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/apache.adoci b/apache.adoci index c275a3c..b146899 100644 --- a/apache.adoci +++ b/apache.adoci @@ -106,9 +106,8 @@ For that, we first have to install it if it is not already present: Then we can perform queries to our web server (the '-u' option allows to provide a 'user:password' pair). -===== Examples ===== - -- Failing to access /private without providing user/password: +.Failing to access '/private' without providing user/password: +========== $ curl http://csvm2C4E.kent.ac.uk/private/ > <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> @@ -124,7 +123,10 @@ a 'user:password' pair). > the credentials required.</p> > </body></html> -- Failing to access /private by providing a wrong password: +========== + +.Failing to access '/private' by providing a wrong password: +========== $ curl http://csvm2C4E.kent.ac.uk/private/ -u admin:wrong_pass > <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> @@ -140,7 +142,10 @@ a 'user:password' pair). > the credentials required.</p> > </body></html> -- Successing to access /private by providing both a good user name and password +========= + +.Successing to access '/private' by providing both a good username and password +========= $ curl http://csvm2C4E.kent.ac.uk/private/ -u admin:good_pass > <html> @@ -150,5 +155,6 @@ a 'user:password' pair). > </p> > </body> > </html> - > + +========= |