Apache won't start and I am getting the following error:
AH00526: Syntax error on line 7 of
/etc/apache2/sites-enabled/app.conf:
Alias must have two arguments when used globally
I can't seem to find where the mistake is.
My app.conf looks like this:
<VirtualHost *:80>
ServerName ip
ServerAdmin [email protected]
WSGIScriptAlias / /var/www/html/project/app.wsgi
<Directory /var/www/html/project/>
Order allow,deny
Allow from all
</Directory>
Alias /static /var/www/html/project/static
<Directory /var/www/html/project/static/>
Order allow,deny
Allow from all
</Directory>
Alias /templates /var/www/html/project/templates
<Directory /var/www/html/project/templates/>
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…