GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 134.29.175.74 / Your IP : 216.73.216.160 Web Server : nginx/1.10.2 System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586 User : Administrator ( 0) PHP Version : 7.1.0 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/nginx/html/JimMartinson/CST2276/Labs/Lab03.3/ |
Upload File : |
<? // JimMartinson/CST2276/Labs/Lab03.3/Lab03.3.phpinc require('Gradebook/EvaluationSubmission_BEGIN.phpinc'); #if ( $_SESSION['userId'] != 1 ) { require('Gradebook/EvaluationSubmission_NOTAVAILABLE.phpinc'); exit; } #$showGenerateComputerNamesVariables = true; require('JimMartinson/CST2276/Labs/GenerateComputerNames.phpinc'); $disabled = ''; #$disabled = ' disabled'; $uploadFilename = $courseNumber.'_'.$evaluationName.'_'.$userFileName.'.png'; ?> <style type="text/css">b {white-space:nowrap;}</style> <p> <fieldset><legend><?=$evaluationType?> <?=$evaluationNumber?> Assignment</legend> <? if ( $disabled ) { ?> <span class="error bold">Notice: Do not perform this assignment unless this notice has been removed.</span><br> <? } ?> The purpose of this lab is to add a new web site that uses the secure https protocol. <br><?=$gradeNote?> <ol> <li>Create a directory called <b class="copyText"><?=$evaluationName?></b>. We will use it for the screenshot created in this lab.</li> <li>If you have not done so, setup an <b>Adapter 3</b> for you server VM using the <b>Host-only Adapter / VirtualBox Host-Only Ethernet Adapter</b>. Then start your server VM and set the <b>Ethernet 3</b> <b>Internet Protocol Version 4 (TCP/IPv4)</b> Properties so the ip address ends with <b>.2</b>. <span class="note">The Subnet mask should be <b>255.255.255.0</b> and the gateway should end with <b>.1</b>. You should also set the <b>Prefered DNS server</b> as you did for the <b>Ethernet 2</b> adapter.</span> </li> <li>Setup the directory for the new web site: <ol> <li>Open <b>C:\inetpub</b> with File Explorer.</li> <li>Create a folder called <b class="copyText">secure</b>.</li> <li>Download and save this <a href="dn/index.html">index.html</a> file in the <b>secure</b> folder.</li> </ol> </li> <li>Create a new A record for the secure server name: <ol> <li>Open <b>ServerManager / DNS</b>.</li> <li>Right click on your server and select <b>DNS Manager</b>.</li> <li>Expand the <b>Forward Lookup Zones</b> and selec the <b><?=$domainName?></b> zone.</li> <li>Add a new A record: <ol> <li>Either select the <b>Action</b> menu and <b>New Host (A or AAAA)...</b> or right-click in some white space in the center pane and select <b>New Host (A or AAAA)...</b> from the dropdown menu.</li> <li>Set the Name to <b class="copyText">secure</b>.</li> <li>Set the <b>IP address</b> to the <b>IPv4 Address</b> of your <b>Ethernet 3</b> adapter. <span class="note">Mine was 192.168.56.2</span>.</li></li> <li>Click <b>Add Host</b>.</li> </ol> </li> </ol> </li> <li>Create a certificate for your secure site: <ol> <li>Open <b>ServerManager / Internet Information Services (IIS) Manager</b>.</li> <li>Select <b><?=$serverNameU?>(<?=$NBname?>\Administrator)</b> from the left pane.</li> <li>Dbl-click the <b>Server Certificates</b> button from the center pane.</li> <li>Select <b>Create Self-Signmed Certiticate...</b> from the Action pane on the right.</li> <li>Set the <b>friendly name</b> of the certificate to <b>secure</b>.</li> <li>Set the <b>certificate store</b> to <b>Web Hosting</b>.</li> <li>Click <b>OK</b>.</li> </ol> </li> <li>Create a new web site: <ol> <li>Open <b>ServerManager / Internet Information Services (IIS) Manager</b>.</li> <li>Expand <b><?=$serverNameU?>(<?=$NBname?>\Administrator)</b>.</li> <li>Right-click on <b>Sites</b> and select <b>Add Website...</b>.</li> <li>Set the <b>Site name</b> to <b class="copyText">secure</b>.</li> <li>Browse the <b>Physical path</b> (Use the <b>...</b> button) and select the <b>C:\inetpub\secure</b> folder.</li> <li>Set the Type to <b>https</b>. <span class="note">This should change the Port to 443.</span></li> <li>Set the <b>IP address</b> to your <b>.2</b> IPv4 address you set for your <b>Ethernet 3</b> adapter.</li> <li>Set the <b>Host name</b> to <b class="copyText">secure.<?=$domainName?></b>.</li> <li>Set the <b>SSL certificate</b> to <b>secure.<?=$domainName?></b>.</li> <li>Click <b>OK</b></li> </ol> </li> <li>Show that your new site works: <ol> <li>Open a browser and enter <b class="copyText">https://secure.<?=$domainName?></b></li> <li>Open the Certificate. <span class="note">This can usually be done by clicking on <b>Not secure and <b>Certificate is not valid</b></b>.</span></li> <li>Take a screenshot of the <b>browser window</b> and save it as <b class="copyText"><?=$uploadFilename?></b> in your <b><?=$evaluationName?></b> folder. <? showBegin('See browser example screenshot'); ?><br> <span class="note">This screenshot was taken of the Google Chrome browser.</span> <img src="images/example.png" width="990" alt="browser example"/> <? showEnd (); ?> </li> </ol> </li> <li>Turn in your assignment: <ol type="a"> <li>Browse and select your <b><?=$uploadFilename?></b> file: <input type="file" name="fileUpload" id="inpFileUpload"<?=$disabled?>><div id="divFileploadError"></div></li> <li>Then <input type="submit" name="f_subtask" id="inpSubmit" value="Submit"<?=$disabled?>> for grading.<? if ( $disabled ) { ?> <span class="error bold">Notice: Do not perform this assignment unless this notice has been removed.</span><? } ?></li> </ol> </li> </ol> <?=$gradeNote?> </fieldset> <? require('Gradebook/EvaluationSubmission_END.phpinc'); // Replaced. if ($TRACK != '') $_SESSION['TRACK'] .= "<li>End ".basename(__FILE__)."</ol>\n"; ?>