Skip to content

Instantly share code, notes, and snippets.

@corysolovewicz
Created July 31, 2019 20:08
Show Gist options
  • Save corysolovewicz/c6318978c156f82dd8cfa272386a67a0 to your computer and use it in GitHub Desktop.
Save corysolovewicz/c6318978c156f82dd8cfa272386a67a0 to your computer and use it in GitHub Desktop.
Denying access to C: drive with Apache Server
# The httpd.conf is designed for user configurations.
# You really should not edit the apache2.conf as it may be updated by future upgrades.
# An additional option is to just put your custom configuration into /etc/apache2/conf.d,
# all files in this directory are included as well.
# This entry denies access to C: drive
<Directory C:/>
Order deny,allow
Deny from all
AllowOverride None
Options None
</Directory>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment