Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
How to enable SSI on ReadyNAS OS 6.4.2
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2016-03-07
12:45 PM
2016-03-07
12:45 PM
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.
Model: RN102|ReadyNAS 100 Series 2- Bay
Message 1 of 1