NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

Bittle's avatar
Bittle
Follower
Mar 07, 2016

How to enable SSI on ReadyNAS OS 6.4.2

Using ReadyNASOS 6.4.2, the instructions on the following topic got me most of the way to enabling server site includes, but I just wanted to post the solution that works for me.

Here's the previous topic:

https://www.readynas.com/forum/viewtopic.php?f=36&t=73204#p408144

 

Here's how I enabled on OS 6.4.2:

  • SSH into your ReadyNAS. I have sudoers set up so have to sudo all these commands. If you don't, then SSH as 'root'.
  • Make sure that the include module is enabled:
    a2enmod include
  • The virtual host configurations are now loaded from /etc/apache2/sites-enabled/
    I just added the following in the file /etc/apache2/sites-enabled/000-fv-http before the close </VirtualHost>. Note that I had to use <Location> instead of <Directory> because the frontview configuration file /etc/frontview/apache/Shares.conf uses Location and overrides Directory. Substitute your url for "your-site" (ie mine is "/web"), and I didn't bother editing 000-fv-https because I don't need https for my test sites:
     <Location "/your-site">
      Options +IncludesNOEXEC
      addType text/html .shtml
      AddOutputFilter INCLUDES .shtml
    </Location>
  • restart the web server
    service apache2 restart

 

So far, frontview hasn't been overwriting this edit and I've tried enabling/disabling http. So far so good, and it's an easy edit. I just wish I knew where the frontview configuration is for these settings so that we could include them with that (so that frontview writes it into /etc/frontview/apache/Shares.conf) instead of trying to hack around frontview.

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More