...
Code Block | ||
---|---|---|
| ||
<VirtualHost *:80> ServerAdmin webmaster@localhost ServerName www.krypton.com ServerAlias krypton.com DocumentRoot /opt/www.krypton.com/www # This restrictive a precedence for ALL directory blocks. <Directory /> Options FollowSymLinks # This prevents use of .htaccess AllowOverride None </Directory> # Main location of static content for the websites. <Directory /opt/www.krypton.com/www/> Options +MultiViews Order Allow,Deny Allow from all </Directory> ErrorLog ${APACHE_LOG_DIR}/www.krypton.com.error.log # Possible values include: debug, info, notice, warn, error, crit, alert, emerg. LogLevel warn CustomLog ${APACHE_LOG_DIR}/www.krypton.com.access.log combined </VirtualHost> |
Note | ||
---|---|---|
| ||
In Apache 2.4 Order Allow,Deny
Allow from all is changed to Require all granted |
Some notes on not so obvious entries in the virtual host file,
...