I've just installed an Ubuntu Server and transferred my files from another server to this one. I've copied the files into:
When i go to the explorer and put IPADDRESS/DIRECTORY the page loads perfectly.
Of course, i do not want to people access via a directory to my website so i've tried to change the DocumentRoot of my server. So i went to
and added the directory after de /var/www
DocumentRoot /var/www/DIRECTORY <Directory /var/www/DIRECTORY> Options Indexes FollowSymlinks Multiviews AllowOverride None Order allow, deny allow from all </Directory>
after that, restart apache
sudo /etc/init.d/apache2 restart
now, when i go to the explorer i type IPADDRESS
And it automatically redirects me to IPADDRESS/DIRECTORY
And gives me a 404 error
Apache/2.2.14 (Ubuntu) Server at I.P.ADD. Port 80
The requested URL /DIRECTORY/ was not found on this server.
Does anyone know what could be the problem?