Changes

Jump to: navigation, search

OPS335 Lab 5

5 bytes added, 10:35, 3 March 2017
Controlling Access to Pages
# Create a new directory inside your '''DocumentRoot''' and move index.php inside it.
# Have your partner view both files again.<br><br>You will now modify the settings on the web-server to prevent machines outside our network from accessing the private directory.<br><br>
# Add the following directory statement to your apache configuration (making sure to replace the X with your own network octet):<presource>
<Directory "/var/www/html/private">
AllowOverride None
Require ip 192.168.X.0/24
</Directory>
</presource>
This sets up separate rules and access permissions for that subdirectory. Your partner should no longer be able to access any pages in the private directory (or any sub-directories of it), but your other internal machines (including your host) should still have access.
13,420
edits

Navigation menu