Edit overall_header.html with ACP - Strange Apache error

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.

Edit overall_header.html with ACP - Strange Apache error

Postby batfastad » Fri Apr 25, 2008 1:52 pm

Hi guys

Just upgraded our forum to phpBB3 and everything seems to be working well.

I've been trying to modify the overall_header.html template in the subsilver2 style
I want to change the site logo code to point to a different logo stored remotely on another server

However when I change

Code: Select all
<td><a href="{U_INDEX}">{SITE_LOGO_IMG}</a></td>

To
Code: Select all
<td><a href="{U_INDEX}"><img src="http://www.domain.com/img/logo.gif" alt="Logo" title="Forum Index" border="0" /></a></td>


I get the following Apache error message:
Not Acceptable

An appropriate representation of the requested resource /forums/adm/index.php could not be found on this server.


Never seen this error before.
It seems to work fine with editing other templates (overall_footer.html) - strange why it's just this one!

Any ideas/suggestions?

Thanks, Ben
Last edited by batfastad on Tue May 13, 2008 10:22 am, edited 1 time in total.
User avatar
batfastad
Registered User
 
Posts: 108
Joined: Sat Aug 02, 2003 5:35 pm

Re: Edit overall_header.html with ACP

Postby batfastad » Wed Apr 30, 2008 12:13 pm

Anyone got any ideas on what might be causing this?

Thanks, Ben
User avatar
batfastad
Registered User
 
Posts: 108
Joined: Sat Aug 02, 2003 5:35 pm

Re: Edit overall_header.html with ACP

Postby Semi_Deus » Wed Apr 30, 2008 12:17 pm

hmm, I don't think this is caused by that change, since the header logo, or an img tag have nothing to do with the ACP.. :|
Image
Semi_Deus
Registered User
 
Posts: 368
Joined: Mon Feb 04, 2008 4:21 pm

Re: Edit overall_header.html with ACP

Postby batfastad » Tue May 13, 2008 10:22 am

I'm still trying to get to the bottom of this.
Does anyone have any further information?

I've contacted our hosting provider to see if there's anything useful in the error logs which may help narrow this down.

Thanks, B
User avatar
batfastad
Registered User
 
Posts: 108
Joined: Sat Aug 02, 2003 5:35 pm

Re: Edit overall_header.html with ACP - Strange Apache error

Postby batfastad » Tue May 13, 2008 10:41 am

Ok I've found some more information that will hopefully help someone out, and also a fix

The following article:
http://stellify.net/406-not-acceptable- ... _security/

I added the following to the .htaccess file in the default forums/ folder
Code: Select all
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>


And it worked first time!
Then not know how seriously that .htaccess change would affect server security, I commented out the .htaccess edit after I'd changed the template and it continues to work fine.

According to the article it could be down to an invalid sequence of characters in a form POST data
So there's something in that overall_header.html in subsilver2 which is causing this problem.

I will report again if I find anything else!
Hope this helps someone

Cheers, B
User avatar
batfastad
Registered User
 
Posts: 108
Joined: Sat Aug 02, 2003 5:35 pm

Re: Edit overall_header.html with ACP - Strange Apache error

Postby ToonArmy » Tue May 13, 2008 11:36 am

Mod security probably blocks this because you are sending the server HTML which can lead to XSS attacks, but this is kinda what you want to do.
Chris SmithBlogXMOOhlohArea51WikiNo support via PM/IM
Image
In a foreign field he lay. Lonely soldier unknown grave. On his dying words he prays. Tell the world of Paschendale.
User avatar
ToonArmy
Development Team Member
Development Team Member
 
Posts: 3999
Joined: Sat Mar 06, 2004 5:29 pm
Location: South Gloucestershire, UK

Re: Edit overall_header.html with ACP - Strange Apache error

Postby batfastad » Tue May 13, 2008 11:48 am

But why does editing all the other templates work ok?
I only have this problem with overall_header.html
User avatar
batfastad
Registered User
 
Posts: 108
Joined: Sat Aug 02, 2003 5:35 pm

Re: Edit overall_header.html with ACP - Strange Apache error

Postby T0ny » Tue May 13, 2008 11:54 am

Because there is something in overall_header.html that your host's configuration of mod_security is mis-identifying as a hacking attempt. Unfortunately, without access to the error log there's no way of telling what :(
User avatar
T0ny
Registered User
 
Posts: 1011
Joined: Sun Jan 29, 2006 8:42 pm
Location: UK

Re: Edit overall_header.html with ACP - Strange Apache error

Postby ToonArmy » Tue May 13, 2008 12:06 pm

batfastad wrote:But why does editing all the other templates work ok?
I only have this problem with overall_header.html


Because overall_header.html has script tags in it ;)
Chris SmithBlogXMOOhlohArea51WikiNo support via PM/IM
Image
In a foreign field he lay. Lonely soldier unknown grave. On his dying words he prays. Tell the world of Paschendale.
User avatar
ToonArmy
Development Team Member
Development Team Member
 
Posts: 3999
Joined: Sat Mar 06, 2004 5:29 pm
Location: South Gloucestershire, UK


Return to 3.0.x Support Forum

Who is online

Users browsing this forum: airwolf85, cletis26, demnia, elephantspike, GenderBender, Guybor, HGN, Jessi, JimA, Lumpy Burgertushie, Pit$Bull, Ripper®, slh550, SuSpanS, TCR_500, Yahoo [Bot] and 82 guests