0

I have a simple web server set up on an ec2 instance.

I want to use a separate EBS disk to store the websites it hosts.

I have created and mounted a disk at /data and can access it via SSH and ftp.

But when i try to serve websites from it by specifying a folder there in vhosts, I get the standard apache page.

I think it might be something to do with permissions / ownership of the directory but I can't seem to figure it out.

Any advice?

Jonathan Plackett
  • 2,346
  • 2
  • 20
  • 33

1 Answers1

0

Simple solution: you need to add the folder you want to serve from (in my case /data) in /etc/httpd/conf/httpd.conf

<Directory "/data">
    AllowOverride None
    # Allow open access:
    Require all granted
</Directory>
Jonathan Plackett
  • 2,346
  • 2
  • 20
  • 33