0 голос "против" у меня файловая система EFS смонтирована на несколько экземпляров EC2. Я пытаюсь изменить файл конфигурации apache. Я не хочу, чтобы мой index.html находился на жестком диске экземпляра EC2. Вместо этого я хочу переместить его в каталог в моей EFS, поэтому я попытался изменить httpd.conf следующим образом:
#<Directory "/var/www"> This is the original location on EC2 instance
<Directory "/home/ec2-user/efs"> my new location on EFS
AllowOverride None
# Allow open access:
Require all granted
</Directory>
#<Directory "/var/www/html"> This is the original location on EC2 instance
<Directory "/home/ec2-user/efs/files"> my new location on EFS
#
Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Require all granted
</Directory>
#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
DirectoryIndex index.php modified file
</IfModule>
Единственные изменения, которые я сделал, - это элемент << "Directory" >>, в котором я изменил путь к файловой системе EFS. После этого я перезапускаю свой сервер apache, но при загрузке моей веб-страницы я получаю следующую ошибку: «У вас нет разрешения на доступ / на этом сервере». Любая помощь будет оценена