gabriele97
Posts: 2
Joined: Sat Sep 21, 2013 2:03 pm

APACHE: Documentroot on a usb stick

Sat Sep 21, 2013 2:23 pm

Hi,
I'm trying to change Documentroot of apache from /var/www on SD to an usb stick.
I created a dir in /mnt/ called webserver and mounted the usb stick with

Code: Select all

sudo mount /dev/sda1 /mnt/webserver
After this, I edited a file called "default" in /etc/Apache2/site-available/:

Code: Select all

DocumentRoot /mnt/webserver/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /mnt/webserver/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
..
And, after a reboot of apache2 service and typed localhost on web browser, I read:
Forbidden

You don't have permission to access / on this server.


Why??

Return to “General programming discussion”