Re: Server-side includes not working...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



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@xxxxxxxxxxxxxxxx
    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

 O
n 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.



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux