diff options
-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> - > + +========= |