Probleme d'Alias avec apache

Résolu/Fermé
_matt_44 Messages postés 23 Date d'inscription mercredi 18 mai 2005 Statut Membre Dernière intervention 4 avril 2006 - 25 mai 2005 à 11:18
mamiemando Messages postés 33079 Date d'inscription jeudi 12 mai 2005 Statut Modérateur Dernière intervention 23 avril 2024 - 26 mai 2005 à 09:50
J'essaye de faire pointer apache avec des alias sur un repertoire :
Pour cela dans le httpd.conf j'ai tapé :

....

Alias /netmap-admin "/usr/local/netmap/www/admin"
Alias /netmap "/usr/local/netmap/www/ui"

<Directory /usr/local/netmap/netmap/www >
Options ExecCGI
AllowOverride AuthConfig
</Directory>

....

Cependant il me met accès refusé erreur 403.

J'ai donc ensuite essayé en suprimant ces Alias et cela ma mi la meme chose!
Donc je pense que cela vien d'autre part mais ou je ne voi pas..
Les droits sont bon.

J'ai aussi essayer avec un autre repertoire a coté toujours avec Alias dans le httpd.conf

...

Alias /matt "/usr/local/matthieu/"

...

Du coup l'erreur a été 404 non trouvé.

Si qqun peut m'aidé je précise que dans le repertoire /var/www/html j'ai bien réussi a visualisé une page html de test.

7 réponses

mamiemando Messages postés 33079 Date d'inscription jeudi 12 mai 2005 Statut Modérateur Dernière intervention 23 avril 2024 7 749
26 mai 2005 à 09:50
Si ça peut t'aider...
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/var/www/htdocs">
[...]

<IfModule mod_alias.c>

    #
    # Note that if you include a trailing / on fakename then the server will
    # require it to be present in the URL.  So "/icons" isn't aliased in this
    # example, only "/icons/".  If the fakename is slash-terminated, then the
    # realname must also be slash terminated, and if the fakename omits the
    # trailing slash, the realname must also omit it.
    #
    Alias /icons/ "/var/www/icons/"

    <Directory "/var/www/icons">
        Options Indexes MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>
[...]
</IfModule>
# End of aliases
4