Adgang nægtet til næsten alt; XAMPP
Jeg er noget ung i Mac miljøet, så ved i det.Jeg har instaleret XAMPP. Som standart skal web filerne ligge inde i Applications/Xampp/.. mappen hvilket kræver rettigheder, og fordi jeg hurtigt er blevet træt af at skulle skrive min adgangskode, vil jeg gerne ligge mine webfiler ind i "Websider" mappen.
Men jeg for følgende fejl
Access forbidden!
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.
Jeg har "/private/etc/hosts" der ser sådan ud
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
255.255.255.255 broadcasthost
fe80::1%lo0 localhost
127.0.0.1 localhost #main localhost
::1 localhost #main localhost
127.0.0.1 beta.localhost #sub localhost
::1 beta.localhost #sub localhost
127.0.0.1 api.localhost #sub localhost
::1 api.localhost #sub localhost
127.0.0.1 opskrift.localhost #sub localhost
::1 opskrift.localhost #sub localhost
127.0.0.1 upload.localhost #sub localhost
::1 upload.localhost #sub localhost
127.0.0.1 xampp.localhost #sub localhost
::1 xampp.localhost #sub localhost
127.0.0.1 pingpong.localhost #sub localhost
::1 pingpong.localhost #sub localhost
127.0.0.1 zend.localhost #sub localhost
::1 zend.localhost #sub localhost
127.0.0.1 svgweb.localhost #sub localhost
::1 svgweb.localhost #sub localhost
127.0.0.1 photo.localhost #sub localhost
::1 photo.localhost #sub localhost
127.0.0.1 quickstart.localhost #sub localhost
::1 quickstart.localhost #sub localhost
I /Applications/XAMPP/etc/httpd.conf har jeg følende (der er klippet ud)
DocumentRoot "/Users/Andreas/Sites"
...
<Directory />
Options FollowSymLinks
AllowOverride None
#XAMPP
#Order deny,allow
#Deny from all
</Directory>
...
<Directory "/Users/Andreas/Sites">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks ExecCGI Includes
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
...
Include /Applications/XAMPP/etc/extra/httpd-vhosts.conf
Og tilsidst har jeg "/Applications/XAMPP/etc/extra/httpd-vhosts.conf"
#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.
#
# Use name-based virtual hosting.
#
NameVirtualHost *:80
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost *:80>
ServerAdmin admin@localhost
DocumentRoot "/Users/Andreas/Sites/netkogeren.dk"
ServerName localhost
ServerAlias www.localhost
ErrorLog "logs/localhost-error.log"
CustomLog "logs/localhost-access.log" combined
</VirtualHost>
<VirtualHost *:80>
ServerAdmin admin@beta.localhost
DocumentRoot "/Users/Andreas/Sites/beta.netkogeren.dk"
ServerName beta.localhost
ServerAlias www.beta.localhost
ErrorLog "logs/beta.localhost-error.log"
CustomLog "logs/beta.localhost-access.log" combined
</VirtualHost>
<VirtualHost *:80>
ServerAdmin admin@api.localhost
DocumentRoot "/Users/Andreas/Sites/api.netkogeren.dk"
ServerName api.localhost
ServerAlias www.api.localhost
ErrorLog "logs/api.localhost-error.log"
CustomLog "logs/api.localhost-access.log" combined
</VirtualHost>
<VirtualHost *:80>
ServerAdmin admin@upload.localhost
DocumentRoot "/Users/Andreas/Sites/upload.netkogeren.dk"
ServerName upload.localhost
ServerAlias www.upload.localhost
ErrorLog "logs/upload.localhost-error.log"
CustomLog "logs/upload.localhost-access.log" combined
</VirtualHost>
<VirtualHost *:80>
ServerAdmin admin@opskrift.localhost
DocumentRoot "/Users/Andreas/Sites/opskrift.netkogeren.dk"
ServerName opskrift.localhost
ServerAlias www.opskrift.localhost
ErrorLog "logs/opskrift.localhost-error.log"
CustomLog "logs/opskrift.localhost-access.log" combined
</VirtualHost>
<VirtualHost *:80>
ServerAdmin admin@xampp.localhost
DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs/xampp"
ServerName xampp.localhost
ServerAlias www.xampp.localhost
ErrorLog "logs/xampp.localhost-error.log"
CustomLog "logs/xampp.localhost-access.log" combined
</VirtualHost>
<VirtualHost *:80>
ServerAdmin admin@pingpong.localhost
DocumentRoot "/Users/Andreas/Sites/pingpong"
ServerName pingpong.localhost
ServerAlias www.pingpong.localhost
ErrorLog "logs/pingpong.localhost-error.log"
CustomLog "logs/pingpong.localhost-access.log" combined
</VirtualHost>
<VirtualHost *:80>
ServerAdmin admin@zend.localhost
DocumentRoot "/Users/Andreas/Sites/zend"
ServerName zend.localhost
ServerAlias www.zend.localhost
ErrorLog "logs/zend.localhost-error.log"
CustomLog "logs/zend.localhost-access.log" combined
</VirtualHost>
<VirtualHost *:80>
ServerAdmin admin@svgweb.localhost
DocumentRoot "/Users/Andreas/Sites/svgweb"
ServerName svgweb.localhost
ServerAlias www.svgweb.localhost
ErrorLog "logs/svgweb.localhost-error.log"
CustomLog "logs/svgweb.localhost-access.log" combined
</VirtualHost>
<VirtualHost *:80>
ServerAdmin admin@photo.localhost
DocumentRoot "/Users/Andreas/Sites/photo"
ServerName photo.localhost
ServerAlias www.photo.localhost
ErrorLog "logs/photo.localhost-error.log"
CustomLog "logs/photo.localhost-access.log" combined
</VirtualHost>
<VirtualHost *:80>
ServerAdmin admin@google.com
DocumentRoot "/Users/Andreas/Sites/pingpong"
ServerName google.com
ServerAlias www.google.com
ErrorLog "logs/google.com-error.log"
CustomLog "logs/google.com-access.log" combined
</VirtualHost>
<VirtualHost *:80>
ServerName quickstart.localhost
DocumentRoot "/Users/Andreas/Sites/quickstart/public"
SetEnv APPLICATION_ENV "development"
<Directory /Users/Andreas/Sites/quickstart/public>
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Er der nogen der kan se hvad jeg mangler eller gør forkert?