403 Forbidden on saving Custom HTML for banner
Asked by Bryan Guffey:

Hi all-  

I'm getting a 403 forbidden error when I try to save custom HTML to put a site-wide banner up. I'm on Linux, running behind an Apache reverse proxy. Any off-the-bat ideas of what might be the problem? I checked the Apache logs and they're no help. Can you give me an idea of where to look? The tomcat access logs also didn't help.   

Specifically, this is when I try to access https://\[base-url\]/admin/doeditcustomhtml.action


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Bryan Guffey](/t5/user/viewprofilepage/user-id/325853) ,

did u try to perform that action bypassing the reverse proxy? My concern is that is something wrong at that level and not for the application.

Fabio


author: Brant Schroeder
body: [@Bryan Guffey](/t5/user/viewprofilepage/user-id/325853) What are you seeing in the Confluence logs? Is the HTML formatted properly?

comments: author: Bryan Guffey
body: Hey [@Brant Schroeder](/t5/user/viewprofilepage/user-id/769100) - I'm getting a 302 only with properly formatted CSS which is trying to send me to /admin/doeditcustomhtml.action only when adding CSS in. HTML works fine.

```
127.0.0.1 bryan.guffey@sonos.com [19/Sep/2022:17:06:13 -0400] "GET /rest/troubleshooting/1.0/check/bryan.guffey@sonos.com HTTP/1.0" 200 15 12 /rest/troubleshooting/1.0/check/bryan.guffey@sonos.com http-nio-127.0.0.1-8090-exec-34 "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36"
127.0.0.1 bryan.guffey@sonos.com [19/Sep/2022:17:06:14 -0400] "POST /rest/analytics/1.0/publish/bulk HTTP/1.0" 200 - 7 /rest/analytics/1.0/publish/bulk http-nio-127.0.0.1-8090-exec-25 "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36"
127.0.0.1 bryan.guffey@sonos.com [19/Sep/2022:17:06:43 -0400] "GET /rest/quickreload/latest/0?since=1663621573638 HTTP/1.0" 200 83 7 /rest/quickreload/latest/0 http-nio-127.0.0.1-8090-exec-27 "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36"
127.0.0.1 bryan.guffey@sonos.com [19/Sep/2022:17:06:43 -0400] "GET /rest/mywork/latest/status/notification/count HTTP/1.0" 200 41 8 /rest/mywork/latest/status/notification/count http-nio-127.0.0.1-8090-exec-35 "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36"
127.0.0.1 bryan.guffey@sonos.com [19/Sep/2022:17:06:54 -0400] "POST /admin/editcustomhtml.action HTTP/1.0" 200 66655 140 /admin/editcustomhtml.action http-nio-127.0.0.1-8090-exec-31 "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36"
127.0.0.1 bryan.guffey@sonos.com [19/Sep/2022:17:06:54 -0400] "GET /rest/menu/latest/appswitcher?_=1663621614531 HTTP/1.0" 200 405 32 /rest/menu/latest/appswitcher http-nio-127.0.0.1-8090-exec-33 "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36"
127.0.0.1 bryan.guffey@sonos.com [19/Sep/2022:17:06:54 -0400] "GET /rest/noemailstorm/1.0/show HTTP/1.0" 200 141 16 /rest/noemailstorm/1.0/show http-nio-127.0.0.1-8090-exec-30 "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36"
127.0.0.1 bryan.guffey@sonos.com [19/Sep/2022:17:06:54 -0400] "GET /rest/mywork/latest/status/notification/count HTTP/1.0" 200 41 20 /rest/mywork/latest/status/notification/count http-nio-127.0.0.1-8090-exec-25 "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36"
127.0.0.1 bryan.guffey@sonos.com [19/Sep/2022:17:06:54 -0400] "GET /rest/noemailstorm/1.0/get-button HTTP/1.0" 200 141 22 /rest/noemailstorm/1.0/get-button http-nio-127.0.0.1-8090-exec-34 "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36"
127.0.0.1 bryan.guffey@sonos.com [19/Sep/2022:17:06:54 -0400] "GET /rest/troubleshooting/1.0/check/bryan.guffey@sonos.com HTTP/1.0" 200 15 43 /rest/troubleshooting/1.0/check/bryan.guffey@sonos.com http-nio-127.0.0.1-8090-exec-2 "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36"
127.0.0.1 bryan.guffey@sonos.com [19/Sep/2022:17:06:55 -0400] "POST /rest/analytics/1.0/publish/bulk HTTP/1.0" 200 - 8 /rest/analytics/1.0/publish/bulk http-nio-127.0.0.1-8090-exec-27 "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36"
127.0.0.1 bryan.guffey@sonos.com [19/Sep/2022:17:07:14 -0400] "POST /admin/doeditcustomhtml.action HTTP/1.0" 302 - 1211 /admin/doeditcustomhtml.action http-nio-127.0.0.1-8090-exec-18 "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36"
127.0.0.1 bryan.guffey@sonos.com [19/Sep/2022:17:07:15 -0400] "GET /admin/viewcustomhtml.action HTTP/1.0" 200 66477 109 /admin/viewcustomhtml.action http-nio-127.0.0.1-8090-exec-31 "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36"
127.0.0.1 bryan.guffey@sonos.com [19/Sep/2022:17:07:15 -0400] "GET /rest/menu/latest/appswitcher?_=1663621635106 HTTP/1.0" 200 405 8 /rest/menu/latest/appswitcher http-nio-127.0.0.1-8090-exec-33 "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36"
127.0.0.1 bryan.guffey@sonos.com [19/Sep/2022:17:07:15 -0400] "GET /rest/noemailstorm/1.0/show HTTP/1.0" 200 141 8 /rest/noemailstorm/1.0/show http-nio-127.0.0.1-8090-exec-30 "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36"
127.0.0.1 bryan.guffey@sonos.com [19/Sep/2022:17:07:15 -0400] "GET /rest/noemailstorm/1.0/get-button HTTP/1.0" 200 141 7 /rest/noemailstorm/1.0/get-button http-nio-127.0.0.1-8090-exec-25 "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36"
127.0.0.1 bryan.guffey@sonos.com [19/Sep/2022:17:07:15 -0400] "GET /rest/mywork/latest/status/notification/count HTTP/1.0" 200 41 7 /rest/mywork/latest/status/notification/count http-nio-127.0.0.1-8090-exec-34 "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36"
127.0.0.1 bryan.guffey@sonos.com [19/Sep/2022:17:07:15 -0400] "GET /rest/troubleshooting/1.0/check/bryan.guffey@sonos.com HTTP/1.0" 200 15 12 /rest/troubleshooting/1.0/check/bryan.guffey@sonos.com http-nio-127.0.0.1-8090-exec-2 "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36"
127.0.0.1 bryan.guffey@sonos.com [19/Sep/2022:17:07:15 -0400] "POST /rest/analytics/1.0/publish/bulk HTTP/1.0" 200 - 6 /rest/analytics/1.0/publish/bulk http-nio-127.0.0.1-8090-exec-27 "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36"
127.0.0.1 bryan.guffey@sonos.com [19/Sep/2022:17:07:46 -0400] "GET /rest/quickreload/latest/0?since=1663621634934 HTTP/1.0" 200 83 7 /rest/quickreload/latest/0 http-nio-127.0.0.1-8090-exec-18 "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36"
127.0.0.1 bryan.guffey@sonos.com [19/Sep/2022:17:09:17 -0400] "GET /rest/quickreload/latest/0?since=1663621666523 HTTP/1.0" 200 83 6 /rest/quickreload/latest/0 http-nio-127.0.0.1-8090-exec-34 "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36"
127.0.0.1 bryan.guffey@sonos.com [19/Sep/2022:17:10:48 -0400] "GET /rest/quickreload/latest/0?since=1663621757996 HTTP/1.0" 200 83 7 /rest/quickreload/latest/0 http-nio-127.0.0.1-8090-exec-25 "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36"
127.0.0.1 bryan.guffey@sonos.com [19/Sep/2022:17:14:44 -0400] "GET /rest/quickreload/latest/0?since=1663621848935 HTTP/1.0" 200 83 8 /rest/quickreload/latest/0 http-nio-127.0.0.1-8090-exec-35 "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36"
```


author: Brant Schroeder
body: Can you share what you are adding?


Tags: apache

confluence-server

server