2013-03-09 128 views
1
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:的Apache2:预期</>但看到</虚拟主机>

<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> 

回答

3

此错误实际上是由线5和8引起的。由于标签是用一个空格打开的,因此配置假定标签为<>,并且应该关闭。因为<目录>和< /目录>都有空格,它假定您打开<>两次。

只需在标签名称前面删除空格,并且Apache应该重新启动而没有任何问题。

<Directory /var/www/mysite_org> 
    Order allow,deny 
    Allow from all 
</Directory > 
相关问题