Lab-Proj 01.doc - Lab-Project 1 HTTP Basic Authentication What You Need A Linux machine such as Kali Starting Apache In a Terminal window execute this

Lab-Proj 01.doc - Lab-Project 1 HTTP Basic Authentication...

This preview shows page 1 - 3 out of 5 pages.

Lab-Project 1: HTTP Basic Authentication What You Need A Linux machine, such as Kali. Starting Apache In a Terminal window, execute this command: service apache2 start If you see an error saying Apache is not installed, follow the instructions on your screen to install it. In a Terminal window, execute this command: ip addr (Note: ifconfig is deprecated and ip is preferred.) Find your IP address. Click Applications , Internet , " Firefox Web Browser " and enter your IP address in the URL. You should see a Web page--if your Apache is newly installed, it will be an Apache default page. Making the secret Page In a Terminal window, execute these commands: mkdir /var/www/html/secret nano /var/www/html/secret/index.html In nano, enter the HTML code shown below, replacing YOUR-NAME with your own name: <html> <body> <h1>YOUR-NAME Secret Page</h1> Protected by HTTP Basic Authentication! </body> </html> Save the file with Ctrl+X , Y , Enter .
Image of page 1
In Firefox, append /secret to the IP address to view your page, as shown below: There was no password required to see this page.
Image of page 2
Image of page 3

You've reached the end of your free preview.

Want to read all 5 pages?

  • Fall '15

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors