Error al configurar Apache en Archlinux (access forbidden)

Al cambiar el DocumentRoot del apache nos podemos encontrar con el siguiente error:

Access forbidden!
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.
If you think this is a server error, please contact the webmaster.

Esto ocurre porque no sólo hay que cambiar el valor de la variable "DocumentRoot" en /etc/httpd/conf/httpd.conf, sino que también hemos de modificar una línea que aparece más hacia abajo:

# This should be changed to whatever you set DocumentRoot to.
< Directory "/home/web">

Ahora reiniciamos y listo.

# /etc/rc.d/httpd restart
Categoría: 

Añadir nuevo comentario

Plain text

  • No se permiten etiquetas HTML.
  • Las direcciones de las páginas web y las de correo se convierten en enlaces automáticamente.
  • Saltos automáticos de líneas y de párrafos.
Image CAPTCHA
Enter the characters shown in the image.