Changes

Jump to: navigation, search

OPS335 Lab 6

21 bytes added, 17:54, 25 May 2017
m
Controlling Access to Pages
# You will also need to create a rule in the FORWARD chain in the default table to accept connections to port 80.
# To test this setup you'll need to ask a classmate on another PC to try to use a browser to view your web page. That person will have to enter your host's external interface IP number in their browser's address window. Have that person view both '''index.html''' and '''index.php'''
# Create a new directory called '''private''' 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 file. The default pathname for the apache configuration file is: '''/etc/httpd/conf/httpd.conf''' (NOTE: replace the X with your own network octet):<source>
932
edits

Navigation menu