Configuration Apache2:预期</&燃气轮机;但是看到</虚拟主机>; /etc/apache2/sites enabled/mysite.org.conf的第14行出现语法错误:应为,但看到 操作“启动”失败。 Apache错误日志可能包含更多信息。

Configuration Apache2:预期</&燃气轮机;但是看到</虚拟主机>; /etc/apache2/sites enabled/mysite.org.conf的第14行出现语法错误:应为,但看到 操作“启动”失败。 Apache错误日志可能包含更多信息。,configuration,apache2,webmin,Configuration,Apache2,Webmin,和/etc/apache2/sites enabled/mysitet.org.conf: 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. ServerName m

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

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.

ServerName mysite.org
DocumentRoot/var/www/mysite\u org

命令允许,拒绝
通融

WSGIDaemonProcess mysite_org processes=2线程=15显示名称=%{GROUP}
WSGIProcessGroup mysite_组织
WSGIScriptAlias//var/www/mysite_org/apache/django.wsgi

此错误实际上是由第5行和第8行引起的。因为标记是用空格打开的,所以配置假定标记是,并且应该用空格关闭。因为和都有空格,所以它假定您打开两次

只需删除标记名前的空格,Apache就可以毫无问题地重新启动

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

命令允许,拒绝
通融

此错误实际上是由第5行和第8行引起的。因为标记是用空格打开的,所以配置假定标记是,并且应该用空格关闭。因为和都有空格,所以它假定您打开两次

只需删除标记名前的空格,Apache就可以毫无问题地重新启动

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

命令允许,拒绝
通融