I am new to ubuntu (and Linux) and asked a simple question.
I set the directory / media / 2A98EDD2ACA90087 / WebProject / and would like to move http: / localhost / from var / www to / media / 2A98EDD2ACA90087 / WebProject /
I have sites with enabled sites / 000-default and / etc / apache2 / sites-available
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /media/2A98EDD2ACA90087/WebProject
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /media/2A98EDD2ACA90087/WebProject>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
And get this apache message!
Forbidden You do not have permission / on this server
When I created a "test" dir and moved localhost from var / www to var / www / test - everything works. I suppose the problem is with file permissions ?! What should I do?
The problem is resolved. Thanks to Patrick and Joe. Actually, you need to provide read access to index.html: chmod 644 / media / 2A98EDD2ACA90087 / WebProject / index.html
Ntfs .
ubuntu