The requested URL was not found on this server
A question asked many times and yet I didn't find an answer that helped me.
I have an Apache Server running under Ubuntu 12.04.5 LTS (yes I need to update).
I have a webpage in /var/www/website/index.html
I have set the Domain Forward at my providers tohttps://ip.address/website/index.hmtl
I have a .htaccess
file in /home/website/
which reads
<Files ~ "^\.(htaccess|htpasswd)$">
deny from all
</Files>
Options Indexes
DirectoryIndex index.html
order deny,allow
I have added aLoadModule rewrite_module modules/mod_rewrite.so
into my /etc/apache2/apache2.conf
When trying to visit the site, I get the error The requested URL /website/index.html was not found on this server.
This is the first time I'm doing something like this and I'm completely at loss... Why can't I visit my Page?
UPDATE: I now set up everything as in https://debian-administration.org/article/412/Hosting_multiple_websites_with_Apache2
Now I get the error that my browser can't get a connection to the server?
UPDATE2:
I now have an error.log
file in my website's directory saying
[Wed Dec 07 08:23:10 2016] [error] (2)No such file or directory: could not open transfer log file /home/www/website/logs/access.log.
On ubuntu enabling module rewrite by running
sudo a2enmod rewrite
and then retart apache2 service with
service apache2 restart
will solve your problem