Server Side Includes

Jamie,

Could you add to the "todo" list the implementation of "Server Side Includes" as an option that can be enabled via Virtualmin.

My thought is it "could" be turned off by default, but perhaps in the Server Templates section for Apache, a person could turn on the feature allowing Virtualmin to automatically add the appropriate adjustments to Apache.

ex.

Options Includes
DirectoryIndex index.shtml

Currently as I understand it, this is somewhat a manual process that someone needs to take care of themselves.

The reason why I think this should be "optional" is because many people don't make use of the feature, however during a recent conversation with a member in the forum http://virtualmin.com/node/24970 it did come to light that some people could make use of this feature.

Thanks in advance for your consideration!

-Peter

Status: 
Closed (fixed)

Comments

I think we have it enabled by default in a new install .. and personally I can't see any reason to ever turn it off actually.

tpnsolutions's picture
Submitted by tpnsolutions on Thu, 01/17/2013 - 16:31

Jamie,

That's the thing, I even looked my own configurations, and it didn't appear to be enabled. I compared older, and newer installs too. (newer as in a few weeks ago).

Here's what is in the "Options" line:

Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch

*** so it does appear Includes are available, however perhaps give the user the option whether to disable "Exec" or not. ***

Here's what is in the "DirectoryIndex" line:

DirectoryIndex index.html index.htm index.php index.php4 index.php5

*** index.shtml is missing from this line ***

-Peter

My mistake, we don't have SSI enabled by default. I will look into adding a UI option to enable it on a per-domain basis..

tpnsolutions's picture
Submitted by tpnsolutions on Thu, 01/17/2013 - 20:11

Jamie,

Sounds good. The Server Templates section was just one logic area where it might work, however it could also fit nicely under Virtualmin > Server Configuration > Website Options.

*** those are just what seem like logical places where such an option could be added ***

-Peter

I have just finished implementing this feature, for inclusion in Virtualmin 3.99.

Automatically closed -- issue fixed for 2 weeks with no activity.