- Raspberry Pi
- Server 128
- Apache2
- apache2.conf
Posted on 18 Aug 2021 at 05:17 pm :: Last edit on 18/08/21 05:27 pm
apache2.conf
apache2.conf is the file apache looks to for initial instructions
In the installation I have the path is /etc/apache2/
The modification I have made to the default file are
- The directory for serving site changed from /var/www/html/ to /var/www/
- Added <virtualhost> sections to host multiple domains and sub-domains
The folowing was added so that php scripts would be interpreted in htm and html files
AddType application/x-httpd-php .php .htm .html
AddType application/x-httpd-php-source .phps
DirectoryIndex index.html index.php index.htm