Last active
August 29, 2015 14:05
-
-
Save jeka-kiselyov/1a3df4ee4197bb56ff7c to your computer and use it in GitHub Desktop.
Apache apache2.conf for localhost
This file contains hidden or 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
SetEnv localhost localhost | |
ServerName localhost | |
Mutex file:${APACHE_LOCK_DIR} default | |
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 | |
IncludeOptional mods-enabled/*.load | |
IncludeOptional mods-enabled/*.conf | |
Include ports.conf | |
<Directory /> | |
Options FollowSymLinks | |
AllowOverride None | |
Require all denied | |
</Directory> | |
<Directory /usr/share> | |
Options Indexes FollowSymLinks | |
AllowOverride All | |
Require all granted | |
</Directory> | |
<Directory /home/jeka911/www> | |
Options Indexes FollowSymLinks | |
AllowOverride All | |
Require all granted | |
</Directory> | |
AccessFileName .htaccess | |
<FilesMatch "^\.ht"> | |
Require all denied | |
</FilesMatch> | |
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined | |
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined | |
LogFormat "%h %l %u %t \"%r\" %>s %O" common | |
LogFormat "%{Referer}i -> %U" referer | |
LogFormat "%{User-agent}i" agent | |
IncludeOptional conf-enabled/*.conf | |
IncludeOptional sites-enabled/*.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment