2
Syntax error on line 14 of /etc/apache2/sites-enabled/mysite.org.conf: Expected </> but saw </VirtualHost>
Action 'start' failed.
The Apache error log may have more information.

和 /etc/apache2/sites-enabled/mysitet.org.conf:

<VirtualHost *:80>
ServerName mysite.org
DocumentRoot /var/www/mysite_org

< Directory /var/www/mysite_org >
    Order allow,deny
    Allow from all
< /Directory >

WSGIDaemonProcess mysite_org processes=2 threads=15 display-name=%{GROUP}
WSGIProcessGroup mysite_org

WSGIScriptAlias / /var/www/mysite_org/apache/django.wsgi
</VirtualHost>
4

1 回答 1

4

这个错误实际上是由第 5 行和第 8 行引起的。因为标签是用空格打开的,所以配置假定标签是 <>,应该用 . 因为 <Directory> 和 </Directory> 都有空格,所以它假定您打开 <> 两次。

只需删除标签名称前的空格,Apache 应该会毫无问题地重新启动。

<Directory /var/www/mysite_org>
    Order allow,deny
    Allow from all
</Directory >
于 2013-03-09T19:22:12.800 回答