Re: SSI / .shtml expressions /

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

 



On Sat, Sep 13, 2014 at 9:53 AM, Simen Mangseth <simi@xxxxxxx> wrote:
I have two questions regarding SSI and .shtml files.

1: I’m using Apache 2.4, and now I can’t write like this anymore:
The simplest option might be to enable the Legacy _expression_ PArser:

SSILegacyExprParser on
http://httpd.apache.org/docs/2.4/mod/mod_include.html#ssilegacyexprparser
 
<!--#if expr="$SERVER_NAME = /dans.no/ || $SERVER_NAME = /dd.no/" -->
I’ve read that there’s a new syntax, but on the website I don’t understand it, even after reading It many times. So the question is: How do I transform this simple _expression_ into the new syntax?

<!--#if expr="%{SERVER_NAME} =~ /dans.no/ || %{SERVER_NAME} =~ /dd.no/" -->


2: When I’m creating a variable with #set like this: 
<!--#set var="errormelding" value="<p><strong>Text…</strong></p>" -->
The HTML code appears in the output. I don’t get a paragraph, or bold text, as I want. How do I do this?

This might be a bug, since the documentation says default encoding is none, but I was able to reproduce it.
You can get around it by adding encoding="none" to your echo. For your example:
<!--#echo encoding="none" var="errormelding" -->
 

I’m sorry, but I’ve just started learning this, so I don’t know much yet.
No need to apologize, it is really why the list is here.

- Y


[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