[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Como configuro apache en otra carpeta



----- Original Message ----- From: "Robert J. Briones C." <robert.briones@gmail.com>
To: <debian-user-spanish@lists.debian.org>
Sent: Tuesday, January 08, 2013 2:07 PM
Subject: Re: Como configuro apache en otra carpeta


2013/1/8 Ismael L. Donis Garcia <ismael@citricos.co.cu>:
Trato de configurar el apache hacia otra carpeta y no logro que vea el
repositorio. Tengo la siguiente configuración en el archivo
/etc/apache2/sites-enabled/000-default pero no se que más debo configurar
para que me muestre las carpetas del repositorio.

<VirtualHost *:80>
ServerAdmin webmaster@localhost

DocumentRoot /opt/trabajo/debian/wheezy
<Directory />

aca tienes que poner

<Directory /opt/trabajo/debian>
si quieres ingresar por http://127.0.0.1/wheezy

o poner

<Directory /opt/trabajo/debian/wheezy>
si quieres ingresar por http://127.0.0.1

Saludos.

 Options FollowSymLinks
 AllowOverride None
</Directory>
<Directory /opt/trabajo/debian/wheezy/>
 Options Indexes FollowSymLinks MultiViews
 AllowOverride None
 Order allow,deny
 allow from all
</Directory>

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
 AllowOverride None
 Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
 Order allow,deny
 Allow from all
</Directory>

ErrorLog ${APACHE_LOG_DIR}/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

SI pongo: http://127.0.0.1/

Me sale:

Index of /
[ICO] Name Last modified Size Description
Apache/2.2.16 (Debian) Server at 127.0.0.1 Port 80

Si pongo: http://127.0.0.1/wheezy/

Me sale:

Forbidden

You don't have permission to access /wheezy/ on this server.
Apache/2.2.16 (Debian) Server at 127.0.0.1 Port 80

Cualquier ayuda será bien venida.
=========
|| ISMAEL ||
=========




1 Millón de gracias.

Estaba todo bien, era un problema de permisos lo que bloqueaba que no se viera.
=========
|| ISMAEL ||
=========


Reply to: