Я пытаюсь запустить apache2, но независимо от того, что я делаю, localhost появляется как 404 не найден.apache invalid command 'ScriptAlias'
Было так много ошибок, что Debian даже не думает, что Apache2 установлен, но он функционирует и работает. Но я не могу удалить его с помощью -purge или иначе.
Когда я начинаю апача я получаю
[email protected]:/tmp# /etc/init.d/apache2 restart
Syntax error on line 16 of /etc/apache2/sites-enabled/000-default:
Invalid command 'ScriptAlias', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed.
The Apache error log may have more information.
failed!
Вот сайт файл
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Я пробовал различные конфигурации. Моя цель - использовать несколько IP-адресов для разных виртуальных хостов на порту 80, но я даже не получил работу после моего последнего бедствия и повторной установки.