启动apache后提示如下;Forbidden
You don't have permission to access /index.html on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.httpd.conf添加如下VirtualHost 如下 DocumentRoot "/usr/local/apache/www"
<Directory "/usr/local/apache/www">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<VirtualHost *:8080>
DocumentRoot /usr/local/apache/www
ServerName test.abc.com
<Directory /usr/local/apache/www>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
You don't have permission to access /index.html on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.httpd.conf添加如下VirtualHost 如下 DocumentRoot "/usr/local/apache/www"
<Directory "/usr/local/apache/www">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<VirtualHost *:8080>
DocumentRoot /usr/local/apache/www
ServerName test.abc.com
<Directory /usr/local/apache/www>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
用root用户执行上面的命令