17 Ağustos 2014 Pazar

You don't have permission to access / on this server. gentoo apache


You don't have permission to access / on this server.

Hatasi aliyorsaniz eger
gentoo da ve  Apache/2.2.27 (Unix) yuklu ise
 benim gibi uzun vakit harcamaniza gerek yok
yapmaniz gereken
/etc/apache2/modules.d/   dizini altindaki  00_default_settings.conf dosyasinda kucuk bir degisiklik

Deny from all  ===>    Allow from all

#nano /etc/apache2/modules.d/00_default_settings.conf

Normal de dosya  bu sekilde dir

##########################################################################
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

# We configure the "default" to be a very restrictive set of features.
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>

# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents. The MultiViews Options can be used for the
# same purpose, but it is much slower.
#
# Do not change this entry unless you know what you are doing.
<IfModule dir_module>
DirectoryIndex index.html index.html.var
</IfModule>

# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
<FilesMatch "^\.ht">
Order allow,deny
Allow from all
</FilesMatch>

# vim: ts=4 filetype=apache
#########################################################################

Bu sekilde ki duzenleme isinizi gorecektir



+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

# We configure the "default" to be a very restrictive set of features.
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
</Directory>

# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents. The MultiViews Options can be used for the
# same purpose, but it is much slower.
#
# Do not change this entry unless you know what you are doing.
<IfModule dir_module>
DirectoryIndex index.html index.html.var
</IfModule>

# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
<FilesMatch "^\.ht">
Order allow,deny
Allow from all
</FilesMatch>

# vim: ts=4 filetype=apache