2013-03-09 4 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 :아파치 :</>를 예상하지만, 본</ VirtualHost의>

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