You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Christophe JAILLET <ch...@wanadoo.fr> on 2019/10/18 16:40:44 UTC
[users@httpd] Re: Server-side includes not working...
Hi,
as explained in [1], I guess that a "AllowOverride Options" is missing
in your configuration file.
BTW, if you can use only configuration files (and avoid using .htaccess
files), performance should be better.
Best regards,
CJ
[1] http://httpd.apache.org/docs/2.4/en/mod/mod_include.html#enabling
Le 18/10/2019 à 18:28, Russell Bateman a écrit :
> Running Apache2 (2.4.29-lubuntu4.11) on Ubuntu Server 18.04.
>
> Consider file /test.shtml/:
>
> <html>
> <body>
> <!--#echo var="DATE_LOCAL" -->
> </body>
> </html>
>
>
> I have created /.htaccess/ in the same directory to contain:
>
> Options +Includes
> AddType text/html .shtml
> AddOutputFilter INCLUDES .shtml
>
>
> This same subdirectory includes /index.html/ for active domain
> /windofkeltia.com/, which does work.
>
> My vhosts file for this domain,
> //etc/apache2/sites-available/windofkeltia.conf/, appears thus:
>
> <VirtualHost *:80>
> ServerAdmin russ@windofkeltia.com
> ServerName windofkeltia.com
> ServerAlias www.windofkeltia.com
> DocumentRoot /var/www/windofkeltia.com
> ErrorLog ${APACHE_LOG_DIR}/error.log
> CustomLog ${APACHE_LOG_DIR}/access.log combined
> </VirtualHost>
>
>
> As I recall, //etc/apache2/apache2.conf/ remains at the factory
> setting. It does include the directive:
>
> AccessFileName .htaccess
>
>
> On the off-chance it was necessary to do so after creating .htaccess,
> I did
>
> # systemctl restart apache2.service
>
> In Chrome, /http://windofkeltia.com/test.shtml/ *does not exhibit the
> date* as hoped. This is my first time attempting to make use of Apache
> SSI.
>
> Any comments are welcome for which I'm profusely thankful.
>