Je dois rediriger un itinéraire de mon serveur apache principal vers un répertoire en dehors de DocumentRoot mais il renvoie toujours une erreur interdite.Répertoire Répertoire d'alias en dehors de DocumentRoot
Interdite
Vous n'êtes pas autorisé à accéder à/test sur ce serveur.
Ceci est mon 000 default.conf
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html
Alias /test "/home/myuser/url.es/my-form/test"
<Directory /home/myuser/url.es/my-form/test>
Options FollowSymLinks
AllowOverride None
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Pour vérifier que les autorisations de répertoire est pas la question, j'ai accordé 777:
drwxrwxrwx 6 root root 4096 Feb 5 18:59 test
et à l'intérieur:
drwxrwxrwx 2 root root 4096 Feb 4 19:07 api
drwxrwxrwx 2 root root 4096 Feb 4 19:07 assets
-rwxrwxrwx 1 root root 585 Feb 4 19:07 crossdomain.xml
drwxrwxrwx 4 root root 4096 Feb 4 19:07 img
-rwxrwxrwx 1 root root 1818 Feb 4 19:07 index.html
-rwxrwxrwx 1 root root 51 Feb 4 19:07 robots.txt
Merci, le problème est que j'ai oublié de mettre 'DirectoryIndex', donc je n'ai pas pu y accéder sans spécifier le chemin complet du fichier. – EnriMR