my httpd-vhosts.conf
<VirtualHost *:80>
ServerName localhost
DocumentRoot /Library/WebServer/Documents/
</VirtualHost>
<VirtualHost *:80>
ServerName education.com
ServerAlias www.education.com
DocumentRoot "/Library/WebServer/Documents/Education"
ErrorLog "/private/var/log/apache2/education.com-error_log"
CustomLog "/private/var/log/apache2/education.com-access_log" common
<Directory "/Library/WebServer/Documents/Education">
Options Indexes FollowSymLinks
AllowOverride All
Order allow, deny
Allow from all
</Directory>
</VirtualHost>
and my hosts file is
127.0.0.1 education.com
127.0.0.1 www.education.com
I'm on a mac, not sure what am I doing wrong here. (if i remove
<VirtualHost
section localhost works fine, otherwise none of them works)
log says
[Sat May 03 15:17:09 2014] [error] [client 127.0.0.1] client denied by server configuration: /usr/\xe2\x80\x9c, referer: http://education.com/
[Sat May 03 15:17:46 2014] [error] [client 127.0.0.1] client denied by server configuration: /usr/\xe2\x80\x9c
define your directory like this:
<Directory "/Library/WebServer/Documents/Education">
Options Indexes FollowSymLinks
AllowOverride All
Order allow, deny
Allow from all
Require all granted
</Directory>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.