Re: [users@httpd] SSI / .shtml expressions /

2014-09-17 Thread Simen Mangseth
Okay, thanks. It isn’t that important for me to get the SSILegacyExprParser off if it’s already on in my configuration. I don’t have access to WHM. But if the SSILegacyExprParser is on for me, why won’t this work?: Shouldn’t it, if the legacy syntax is on? /Simen Fra: Yehuda Katz Send

Re: [users@httpd] SSI / .shtml expressions /

2014-09-15 Thread Yehuda Katz
This might be better on a cPanel forum, since it seems that Apache is working as expected. If you have access to WHM, you could modify /var/cpanel/templates/apache2_4/vhost.default to remove the "SSILegacyExprParser On" and rebuild your config (/usr/local/cpanel/bin/build_apache_conf). - Y On Mon

Re: [users@httpd] SSI / .shtml expressions /

2014-09-15 Thread Simen Mangseth
I’ve copied that code into .htaccess (with the sitename change, of course), but it doesn’t appear to have an effect. Maybe you could use the live sites to find out if there’s anything wrong with them? http://dd.no/404.shtml http://dans.no/404.shtml http://ddcountry.no/404.shtml http://gullsk

Re: [users@httpd] SSI / .shtml expressions /

2014-09-15 Thread Yehuda Katz
Except for the one "$side = ddcountry" which you missed converting... On Mon, Sep 15, 2014 at 12:03 PM, Yehuda Katz wrote: > EasyApache is the cPanel program that builds the Apache (and PHP) binaries > and config files, so if you use cPanel, you use EasyApache. > > I looked on my cPanel server a

Re: [users@httpd] SSI / .shtml expressions /

2014-09-15 Thread Yehuda Katz
EasyApache is the cPanel program that builds the Apache (and PHP) binaries and config files, so if you use cPanel, you use EasyApache. I looked on my cPanel server and found this directive: SSILegacyExprParser On You should be able to put SSILegacyExprParser Off in your .htacc

Re: [users@httpd] SSI / .shtml expressions /

2014-09-15 Thread Simen Mangseth
To take the good news first, I changed it to the echo element, and the encoding now works. Thanks. However, the expressions still refuses to work. I’m thinking maybe I already have the legacy filter on, because I read here that cPanel puts on that setting if you’re using EasyApache. I don’t kn

Re: [users@httpd] SSI / .shtml expressions /

2014-09-14 Thread Yehuda Katz
On Sun, Sep 14, 2014 at 4:03 AM, Simen Mangseth wrote: > Thanks for your reply, Yehuda. However, I can’t get any of your > suggestions to work. You can get the whole file if you want, but for the > time being, I’ll just send the pieces of code that doesn’t work. > > Here’s the new if-code: > >

Re: [users@httpd] SSI / .shtml expressions /

2014-09-14 Thread Simen Mangseth
Thanks for your reply, Yehuda. However, I can’t get any of your suggestions to work. You can get the whole file if you want, but for the time being, I’ll just send the pieces of code that doesn’t work. Here’s the new if-code: Now nothing works, not even the two last ones with no “||

Re: [users@httpd] SSI / .shtml expressions /

2014-09-13 Thread Yehuda Katz
On Sat, Sep 13, 2014 at 9:53 AM, Simen Mangseth 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.o

[users@httpd] SSI / .shtml expressions /

2014-09-13 Thread Simen Mangseth
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: 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 express