diff options
-rw-r--r-- | apache.adoci | 32 |
1 files changed, 3 insertions, 29 deletions
diff --git a/apache.adoci b/apache.adoci index b146899..8c3b259 100644 --- a/apache.adoci +++ b/apache.adoci @@ -106,22 +106,13 @@ 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). +Only interesting excerpts of the output is shown below + .Failing to access '/private' without providing user/password: ========== $ curl http://csvm2C4E.kent.ac.uk/private/ - > <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> - > <html><head> > <title>401 Unauthorized</title> - > </head><body> - > <h1>Unauthorized</h1> - > <p>This server could not verify that you - > are authorized to access the document - > requested. Either you supplied the wrong - > credentials (e.g., bad password), or your - > browser doesn't understand how to supply - > the credentials required.</p> - > </body></html> ========== @@ -129,18 +120,7 @@ a 'user:password' pair). ========== $ curl http://csvm2C4E.kent.ac.uk/private/ -u admin:wrong_pass - > <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> - > <html><head> > <title>401 Unauthorized</title> - > </head><body> - > <h1>Unauthorized</h1> - > <p>This server could not verify that you - > are authorized to access the document - > requested. Either you supplied the wrong - > credentials (e.g., bad password), or your - > browser doesn't understand how to supply - > the credentials required.</p> - > </body></html> ========= @@ -148,13 +128,7 @@ a 'user:password' pair). ========= $ curl http://csvm2C4E.kent.ac.uk/private/ -u admin:good_pass - > <html> - > <body> - > <p> - > This content is private. If you can read this message, it means that you have successfully passed HTTP authentication. - > </p> - > </body> - > </html> + > This content is private. If you can read this message, it means that you have successfully passed HTTP authentication. ========= |