Uso Mac OS X 10.6.8 e sto provando a configurare un vhost. L'ho configurato e mi ha dato un 403 Proibito, e ho problemi a dare _www il permesso di leggere / scrivere in ~ / Document / workspace / dev
link
#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
#ServerName www.example.com:80
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/Library/WebServer/Documents"
Mi sono anche assicurato di rimuovere il commento dall'inclusione su questo:
# Virtual hosts
Include /private/etc/apache2/extra/httpd-vhosts.conf
E ho definito questi vHosts in httpd-vhosts.conf
<VirtualHost *:80>
DocumentRoot "/Library/WebServer/Documents"
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "/Users/isaacbeckett/Documents/workspace/dev"
ServerName isaac.local
ErrorLog "/private/var/log/apache2/isaac.local-error_log"
CustomLog "/private/var/log/apache2/isaac.local-access_log" common
<Directory "/Users/isaac/Documents/workspace/dev">
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Ed ecco il mio file / etc / hosts:
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
127.0.0.1 isaac.local
Ho svuotato la cache locale con dscacheutil -flushcache
più volte e ha provato anche chmod 755 ~/Documents
, ma senza successo. Qualcuno può aiutarmi a capirlo?