我在httpd.conf中有这个:
<VirtualHost *:80>
DocumentRoot "/var/www/html/example.com"
ServerName www.example.com
ServerAlias example.com
ErrorLog "%{DOCUMENT_ROOT}/error_log"
<Directory /var/www/html/example.com>
AllowOverride all
#Require all granted
#allow from all
Options -Indexes
</Directory>
</VirtualHost>
当我做sudo服务httpd restart时,我得到:
No such file or directory: AH02291: Cannot access directory '/etc/httpd/%{DOCUMENT_ROOT}/' for error log of vhost defined at /etc/httpd/conf/httpd.conf:380 AH00014: Configuration check failed
有没有办法将错误日志设置为虚拟主机的文档?感谢。
答案 0 :(得分:0)
您必须替换Apache 2.2配置:
public sealed partial class CategoriesEdit: Page
{
public CategoriesViewModel Vm
{
get
{
return (CategoriesViewModel)this.DataContext;
}
}
public CategoriesEdit()
{
this.InitializeComponent();
}
}
使用Apache 2.4配置:
Order allow,deny
Allow from all