Created
July 28, 2022 20:20
-
-
Save gartha1/e0a8807c09ba69d2ff60f0cb953c5ae3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Apache httpd v2.4 minimal configuration | |
# This can be reduced further if you remove the accees log and mod_log_config | |
#ServerRoot "/usr/httpd" | |
ServerRoot "/etc/apache2" | |
# LoadModule.......... | |
IncludeOptional mods-enabled/*.load | |
IncludeOptional mods-enabled/*.conf | |
DefaultRuntimeDir ${APACHE_RUN_DIR} | |
PidFile ${APACHE_PID_FILE} | |
Timeout 300 | |
KeepAlive On | |
MaxKeepAliveRequests 100 | |
KeepAliveTimeout 5 | |
User ${APACHE_RUN_USER} | |
Group ${APACHE_RUN_GROUP} | |
HostnameLookups Off | |
ErrorLog ${APACHE_LOG_DIR}/error.log | |
LogLevel warn | |
# Port to Listen on | |
Listen *:80 | |
# In a basic setup httpd can only serve files from its document root | |
#DocumentRoot "/usr/httpd/htdocs" | |
#DocumentRoot "/usr/apache2/" | |
#this line is in the 000 conf in sites-available.. so i've included it here. It was in virtualhost.. | |
# I haven't included that file.. | |
# | |
DocumentRoot "/var/www/html" | |
<Directory /> | |
Options FollowSymLinks | |
AllowOverride None | |
Require all denied | |
</Directory> | |
<Directory /usr/share> | |
AllowOverride None | |
Require all granted | |
</Directory> | |
<Directory /var/www/> | |
Options Indexes FollowSymLinks | |
AllowOverride None | |
Require all granted | |
</Directory> | |
<Directory /var/www/html> | |
Options Indexes FollowSymLinks | |
AllowOverride None | |
Require all granted | |
</Directory> | |
# --------- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment