Tagged: apache2

Apache2 https and .htaccess Rewrite Engine

Problem: After installing Apache2 some local site, which has a .htaccess-file cannot be opened, and shows the error message: “Internal Server Error. The server encountered an internal error or misconfiguration and was unable to complete your request.” The logfile /var/log/apache2/error.log says “/path/.htaccess: Invalid command ‘RewriteEngine’, perhaps misspelled or defined by a module not included in the server configuration”. .htaccess has...

Change Apache2 Webfolder

Problem: I have stored my local Websites in ~/Documents/Sites/ however the standard Apache2 Directory is /var/www/html. To change this: 1) vi /etc/apache2/sites-available/000-default.conf 2) Change DocumentRoot to desired location: /path/to/my/project 3) vi /etc/apache2/apache2.conf 4) Change directory setting to: < Directory /> Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Require all granted < /Directory> 5) Restart Apache: sudo service apache2 restart In...