Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
975 views
in Technique[技术] by (71.8m points)

flask - Apache2 Alias must have two arguments when used globally

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>

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...