Использовал рекомендуемый скрипт конфигурации для Ubuntu. Конфиг apache выглядит следующим образом:
Code: Select all
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
AddType text/html .shtml
ScriptAlias /cgi-bin/ "/usr/lib/cgi-bin/"
<Directory "/usr/lib/cgi-bin">
Options +ExecCGI +FollowSymLinks +Includes
AllowOverride None
Require all granted
Order allow,deny
Allow from all
</Directory>
<Directory "/var/www/html">
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>