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

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 ||
> =========
>
>
> --
> To UNSUBSCRIBE, email to debian-user-spanish-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
> Archive:
> [🔎] C908FCE3A7D84A4CA2C415433D4C0E82@eicc.citricos.cu">http://lists.debian.org/[🔎] C908FCE3A7D84A4CA2C415433D4C0E82@eicc.citricos.cu
>


Reply to: