<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Authentication through nginx proxy returns 404 in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/authentication-through-nginx-proxy-returns-404/m-p/39799#M16702</link>
    <description>&lt;P&gt;You must change:&lt;/P&gt;&lt;PRE&gt;            location /alfresco/ {
                proxy_pass  http://localhost:8080/;&lt;/PRE&gt;&lt;P&gt;to:&lt;/P&gt;&lt;PRE&gt;            location /alfresco/ {
                proxy_pass  http://localhost:8080/alfresco/;&lt;/PRE&gt;&lt;P&gt;and other parts(eg&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;            location /activiti/ {
                proxy_pass  http://localhost:9999/;&lt;/PRE&gt;&lt;P&gt;and&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;            location / {
                proxy_pass  http://localhost:9001/;&lt;/PRE&gt;&lt;P&gt;the same way as above.&lt;/P&gt;&lt;P&gt;also you must install Alfresco Identity Service(eg. Keycloak) and configure ACS and APS to work with identity service otherwise you can not use both APS and ACS in your ADF app.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Aug 2021 09:40:15 GMT</pubDate>
    <dc:creator>hmirheydari</dc:creator>
    <dc:date>2021-08-09T09:40:15Z</dc:date>
    <item>
      <title>Authentication through nginx proxy returns 404</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/authentication-through-nginx-proxy-returns-404/m-p/39798#M16701</link>
      <description>&lt;P&gt;Hello guys,&lt;/P&gt;&lt;DIV class="tlid-results-container results-container"&gt;&lt;DIV class="tlid-result result-dict-wrapper"&gt;&lt;DIV class="result tlid-copy-target"&gt;&lt;DIV class="text-wrap tlid-copy-target"&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;I'm trying&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;to create nginx proxy for demo shell ADF application and&amp;nbsp;calling port 7777 instead of 8080 for authentization. Unfortunately 404 error code is coming back &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_3.png" style="width: 816px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/73i715B1C6CD5126ED8/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;app.config.json&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;PRE&gt;{
  "$schema": "../../lib/core/app-config/schema.json",
  "ecmHost": "{protocol}//{hostname}{:port}",
  "bpmHost": "{protocol}//{hostname}{:port}",
  "identityHost": "{protocol}//{hostname}{:port}/auth/realms/alfresco",
  "loginRoute": "login",
  "providers": "ALL",
  "contextRootBpm": "activiti-app",
  "authType": "BASIC",
  "locale": "en",
  "notificationDefaultDuration": 2000,
  "auth": {
    "withCredentials": false
  },
  "oauth2": {
    "host": "{protocol}//{hostname}{:port}/auth/realms/alfresco",
    "clientId": "alfresco",
    "scope": "openid",
    "secret": "",
    "implicitFlow": true,
    "silentLogin": true,
    "redirectSilentIframeUri": "{protocol}//{hostname}{:port}/assets/silent-refresh.html",
    "redirectUri": "/",
    "redirectUriLogout": "/logout",
    "publicUrls": ["**/preview/s/*", "**/settings"]
  },&lt;/PRE&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;nginx.conf&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;PRE&gt;   server {
            listen                          7777;
            server_name                     test.adf.cz;

            #set $allowOriginSite http://127.0.0.1:3000;
            set  $allowOriginSite *;

            gzip                            on;
            gzip_min_length                 1000;
            gzip_proxied                    expired no-cache no-store private auth;
            underscores_in_headers          on;
            proxy_pass_request_headers      on;
            proxy_pass_header  Set-Cookie;

            location /alfresco/ {
                proxy_pass  http://localhost:8080/;
                proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
                proxy_redirect off;
                proxy_buffering off;
                proxy_set_header        Host            $host;
                proxy_set_header        X-Real-IP       $remote_addr;
                proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_pass_header  Set-Cookie;
            }

            location /activiti/ {
                proxy_pass  http://localhost:9999/;
                proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
                proxy_redirect off;
                proxy_buffering off;
                proxy_set_header        Host            $host;
                proxy_set_header        X-Real-IP       $remote_addr;
                proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_pass_header  Set-Cookie;
                proxy_pass_request_headers      on;
            }

            location / {
                proxy_pass  http://localhost:9001/;
                proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
                proxy_redirect off;
                proxy_buffering off;
                proxy_set_header        Host             $host;
                proxy_set_header        X-Real-IP        $remote_addr;
                proxy_set_header        X-Forwarded-For  $proxy_add_x_forwarded_for;
                proxy_set_header        X-NginX-Proxy    true;
                proxy_pass_header  Set-Cookie;
                proxy_pass_request_headers      on;
            }
    }&lt;/PRE&gt;&lt;SPAN&gt;&lt;BR /&gt;Port 8080&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_4.png" style="width: 680px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/76iA64B85827EAEF7DF/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;ADF&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_5.png" style="width: 345px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/72i520A23FA8D455791/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_6.png" style="width: 480px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/75i81E83339FE001C10/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Do you have any idea how to fix it? I am running everything in docker CE 6.2.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;(I'm relatively new to Alfresco, but I'm really wondering if at least one thing will work &lt;SPAN&gt;according to the manual&lt;/SPAN&gt; on the first try)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 24 Apr 2020 13:45:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/authentication-through-nginx-proxy-returns-404/m-p/39798#M16701</guid>
      <dc:creator>miroslav</dc:creator>
      <dc:date>2020-04-24T13:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication through nginx proxy returns 404</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/authentication-through-nginx-proxy-returns-404/m-p/39799#M16702</link>
      <description>&lt;P&gt;You must change:&lt;/P&gt;&lt;PRE&gt;            location /alfresco/ {
                proxy_pass  http://localhost:8080/;&lt;/PRE&gt;&lt;P&gt;to:&lt;/P&gt;&lt;PRE&gt;            location /alfresco/ {
                proxy_pass  http://localhost:8080/alfresco/;&lt;/PRE&gt;&lt;P&gt;and other parts(eg&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;            location /activiti/ {
                proxy_pass  http://localhost:9999/;&lt;/PRE&gt;&lt;P&gt;and&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;            location / {
                proxy_pass  http://localhost:9001/;&lt;/PRE&gt;&lt;P&gt;the same way as above.&lt;/P&gt;&lt;P&gt;also you must install Alfresco Identity Service(eg. Keycloak) and configure ACS and APS to work with identity service otherwise you can not use both APS and ACS in your ADF app.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Aug 2021 09:40:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/authentication-through-nginx-proxy-returns-404/m-p/39799#M16702</guid>
      <dc:creator>hmirheydari</dc:creator>
      <dc:date>2021-08-09T09:40:15Z</dc:date>
    </item>
  </channel>
</rss>

