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

Problemas con virtual host en apache



Colegas,

Resulta que yo tengo montado en apache varios virtual host para
gestionar varias aplicaciones web en un mismo servidor. Las dos ultimas
funcionan perfectamente.
El problema esta que al crear el virtual host del repositorio, este me
da el siguiente error:

************
Forbidden

You don't have permission to access / on this server.
Apache/2.2.16 (Debian) Server at mirror.rcs.minjus.cu Port 80
************

si le pongo en la raiz del repositorio una pagina ej: index.htm, esta se
visualiza sin problemas y si desactivo los virtualhost y declaro el
repositorio como un unico elemento del apache en esta pc se visualizan
perfectamente las estructuras de las carpetas.

Mi pregunta: por que entonces con el uso del virtualhost me da acceso
denegado


PONGO EJEMPLO DE LA DECLARACION DE LOS VIRTUALHOST


Saludos y gracias...
Alexis




#---VIRTUAL HOST DEL REPOSITORIO
<VirtualHost *:80>
        ServerName mirror.rcs.minjus.cu
        DocumentRoot /home/webserver/repositorio/
	
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /home/webserver/repositorio/>
                Options FollowSymLinks MultiViews
                AllowOverride None
                Order deny,allow
                Allow from 127.0.0.1 10.16.6.0/24
        </Directory>

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

        CustomLog /var/log/apache2/mirror/access.log combined
        ErrorLog /var/log/apache2/mirror/error.log
        LogLevel debug

        ServerSignature On
                Alias /doc/ "/usr/share/doc/"
                <Directory "/usr/share/doc/">
                Options MultiViews FollowSymLinks
                AllowOverride None
                Order deny,allow
                Allow from 127.0.0.1 10.16.6.0/24
        </Directory>

</VirtualHost>


<VirtualHost *:80>
        ServerName estadisticas.rcs.minjus.cu
        DocumentRoot /home/webserver/estadisticas/
	DirectoryIndex  index.php
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /home/webserver/estadisticas/>
                Options FollowSymLinks MultiViews
                AllowOverride None
                Order deny,allow
                Allow from 127.0.0.1 10.16.6.0/24
        </Directory>

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

        CustomLog /var/log/apache2/estadisticas/access.log combined
        ErrorLog /var/log/apache2/estadisticas/error.log
        LogLevel debug

        ServerSignature On
                Alias /doc/ "/usr/share/doc/"
                <Directory "/usr/share/doc/">
                Options MultiViews FollowSymLinks
                AllowOverride None
                Order deny,allow
                Allow from 127.0.0.1 10.16.6.0/24
        </Directory>

</VirtualHost>


<VirtualHost *:80>
        ServerName app.rcs.minjus.cu
        DocumentRoot /home/webserver/app/
	DirectoryIndex  default.php
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /home/webserver/app/>
                Options FollowSymLinks MultiViews
                AllowOverride None
                Order deny,allow
                Allow from 127.0.0.1 10.16.6.0/24
        </Directory>

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

        CustomLog /var/log/apache2/app/access.log combined
        ErrorLog /var/log/apache2/app/error.log
        LogLevel debug

        ServerSignature On
                Alias /doc/ "/usr/share/doc/"
                <Directory "/usr/share/doc/">
                Options MultiViews FollowSymLinks
                AllowOverride None
                Order deny,allow
                Allow from 127.0.0.1 10.16.6.0/24
        </Directory>

</VirtualHost>


Reply to: