Replies: 3 comments 4 replies
-
sadly i have zero experience with apache, in general make sure to pass all headers appropriately and this should work. if you have a working setup feel free to add it to the docs as a community guide |
Beta Was this translation helpful? Give feedback.
-
@rapkin61 Django is heavily reliant on the headers passed. Check out this issue #1043 for discussion of what headers are required. |
Beta Was this translation helpful? Give feedback.
-
thanks a lot! Looks like I got it now - this configuration works:
@MaxJa4: e.g. when logging in: also there were still those "errors while retrieving a ressource..." Probably this is because %{REMOTE_HOST} is the address of the client computer - (i.e. the one who submits the request) The complete proxy - section now looks that way:
Remember ... this is only an example for proxy-ing to another ip (and port) - one could do a lot more things here. |
Beta Was this translation helpful? Give feedback.
-
I try to access the tandoor container behind an apache proxy that is running on the host.
The proxy works well for other containers but tandoor seems to have problems ...
Several things do not work at al - e.g. editing recipes and thus you cannot create any new recipes.
When I click on "create a Recipe" I get redirected to
xxx.xxx.xxx.xxx/new/recipe/
Here I can type in a name and the click on "save"
this leads me to
xxx.xxx.xxx.xxx/edit/recipe/internal/9/
... but this page is almost empty. There is a circle of rotating cooking tools - that's all.
Sometimes there are several popups stating "there was an error while fetching a resource"...
The log looks rather unspectacular:
127.0.0.1 - - [12/Jan/2022:16:47:40 +0100] "POST /new/recipe/ HTTP/1.0" 302 0 "https://xxx.xxx.xxx.xxx/new/recipe/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36"
172.16.16.1 - - [12/Jan/2022:15:47:40 +0000] "GET /edit/recipe/9/ HTTP/1.1" 302 0 "https://xxx.xxx.xxx.xxx/new/recipe/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36" "yyy.yyy.yyy.yyy"
127.0.0.1 - - [12/Jan/2022:16:47:40 +0100] "GET /edit/recipe/9/ HTTP/1.0" 302 0 "https://xxx.xxx.xxx.xxx/new/recipe/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36"
172.16.16.1 - - [12/Jan/2022:15:47:40 +0000] "GET /edit/recipe/internal/9/ HTTP/1.1" 200 17606 "https://xxx.xxx.xxx.xxx/new/recipe/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36" "yyy.yyy.yyy.yyy"
127.0.0.1 - - [12/Jan/2022:16:47:40 +0100] "GET /edit/recipe/internal/9/ HTTP/1.0" 200 17606 "https://xxx.xxx.xxx.xxx/new/recipe/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36"
172.16.16.1 - - [12/Jan/2022:15:47:41 +0000] "GET /static/vue/css/chunk-vendors.cc9c75c5ce23.css HTTP/1.1" 200 33932 "https://xxx.xxx.xxx.xxx/edit/recipe/internal/9/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36" "yyy.yyy.yyy.yyy"
127.0.0.1 - - [12/Jan/2022:16:47:41 +0100] "GET /static/vue/css/chunk-vendors.cc9c75c5ce23.css HTTP/1.0" 200 0 "https://xxx.xxx.xxx.xxx/edit/recipe/internal/9/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36"
172.16.16.1 - - [12/Jan/2022:15:47:41 +0000] "GET /static/django_js_reverse/reverse.a8c8935b7ba2.js HTTP/1.1" 200 4747 "https://xxx.xxx.xxx.xxx/edit/recipe/internal/9/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36" "yyy.yyy.yyy.yyy"
127.0.0.1 - - [12/Jan/2022:16:47:41 +0100] "GET /static/django_js_reverse/reverse.a8c8935b7ba2.js HTTP/1.0" 200 0 "https://xxx.xxx.xxx.xxx/edit/recipe/internal/9/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36"
172.16.16.1 - - [12/Jan/2022:15:47:41 +0000] "GET /static/vue/css/edit_internal_recipe.ba65faffecc7.css HTTP/1.1" 200 112 "https://xxx.xxx.xxx.xxx/edit/recipe/internal/9/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36" "yyy.yyy.yyy.yyy"
127.0.0.1 - - [12/Jan/2022:16:47:41 +0100] "GET /static/vue/css/edit_internal_recipe.ba65faffecc7.css HTTP/1.0" 200 0 "https://xxx.xxx.xxx.xxx/edit/recipe/internal/9/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36"
127.0.0.1 - - [12/Jan/2022:16:47:41 +0100] "GET /static/vue/js/chunk-vendors.124c48fd4079.js HTTP/1.0" 200 0 "https://xxx.xxx.xxx.xxx/edit/recipe/internal/9/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36"
172.16.16.1 - - [12/Jan/2022:15:47:41 +0000] "GET /static/vue/js/chunk-vendors.124c48fd4079.js HTTP/1.1" 200 531349 "https://xxx.xxx.xxx.xxx/edit/recipe/internal/9/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36" "yyy.yyy.yyy.yyy"
172.16.16.1 - - [12/Jan/2022:15:47:41 +0000] "GET /static/vue/js/edit_internal_recipe.51c5f5566cee.js HTTP/1.1" 200 44271 "https://xxx.xxx.xxx.xxx/edit/recipe/internal/9/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36" "yyy.yyy.yyy.yyy"
127.0.0.1 - - [12/Jan/2022:16:47:41 +0100] "GET /static/vue/js/edit_internal_recipe.51c5f5566cee.js HTTP/1.0" 200 0 "https://xxx.xxx.xxx.xxx/edit/recipe/internal/9/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36"
172.16.16.1 - - [12/Jan/2022:15:51:12 +0000] "GET /history/ HTTP/1.1" 200 22498 "https://xxx.xxx.xxx.xxx/edit/recipe/internal/9/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36" "yyy.yyy.yyy.yyy"
127.0.0.1 - - [12/Jan/2022:16:51:12 +0100] "GET /history/ HTTP/1.0" 200 22498 "https://xxx.xxx.xxx.xxx/edit/recipe/internal/9/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36"
the access.log (apache) just tells the same:
yyy.yyy.yyy.yyy - - [12/Jan/2022:16:47:40 +0100] "POST /new/recipe/ HTTP/2.0" 302 328 "https://xxx.xxx.xxx.xxx/new/recipe/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36"
yyy.yyy.yyy.yyy - - [12/Jan/2022:16:47:40 +0100] "GET /edit/recipe/9/ HTTP/2.0" 302 337 "https://xxx.xxx.xxx.xxx/new/recipe/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36"
yyy.yyy.yyy.yyy - - [12/Jan/2022:16:47:40 +0100] "GET /edit/recipe/internal/9/ HTTP/2.0" 200 3425 "https://xxx.xxx.xxx.xxx/new/recipe/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36"
yyy.yyy.yyy.yyy - - [12/Jan/2022:16:47:41 +0100] "GET /static/vue/css/chunk-vendors.cc9c75c5ce23.css HTTP/2.0" 200 34357 "https://xxx.xxx.xxx.xxx/edit/recipe/internal/9/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36"
yyy.yyy.yyy.yyy - - [12/Jan/2022:16:47:41 +0100] "GET /static/django_js_reverse/reverse.a8c8935b7ba2.js HTTP/2.0" 200 5177 "https://xxx.xxx.xxx.xxx/edit/recipe/internal/9/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36"
yyy.yyy.yyy.yyy - - [12/Jan/2022:16:47:41 +0100] "GET /static/vue/css/edit_internal_recipe.ba65faffecc7.css HTTP/2.0" 200 532 "https://xxx.xxx.xxx.xxx/edit/recipe/internal/9/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36"
yyy.yyy.yyy.yyy - - [12/Jan/2022:16:47:41 +0100] "GET /static/vue/js/chunk-vendors.124c48fd4079.js HTTP/2.0" 200 531783 "https://xxx.xxx.xxx.xxx/edit/recipe/internal/9/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36"
yyy.yyy.yyy.yyy - - [12/Jan/2022:16:47:41 +0100] "GET /static/vue/js/edit_internal_recipe.51c5f5566cee.js HTTP/2.0" 200 44703 "https://xxx.xxx.xxx.xxx/edit/recipe/internal/9/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36"
yyy.yyy.yyy.yyy - - [12/Jan/2022:16:51:12 +0100] "GET /history/ HTTP/2.0" 200 3712 "https://xxx.xxx.xxx.xxx/edit/recipe/internal/9/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36"
Therefore I think this is again a problem with the (CSRF-)cookies and/or the way how the proxy forwards the headers.
SSLEngine on ServerName tandoor.picloud.mydomain.comThis is the config for the virtual host:
Has anyone an idea how it should look?
Beta Was this translation helpful? Give feedback.
All reactions