# App redirecting to SSO

**URL:** <https://forum.yunohost.org/t/app-redirecting-to-sso/4074>\
**Category:** Support\
**Tags:** english\
**Created:** [January 7, 2018, 9:22pm UTC](https://forum.yunohost.org/t/app-redirecting-to-sso/4074 "2018-01-07T21:22:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kanhu](https://forum.yunohost.org/user_avatar/forum.yunohost.org/kanhu/32/3518_2.png) [@kanhu](https://forum.yunohost.org/u/kanhu)\
**Post date:** [January 7, 2018, 9:22pm UTC](https://forum.yunohost.org/t/app-redirecting-to-sso/4074/1 "2018-01-07T21:22:30Z")

</div>

Hi  
I am facing a strange issue. I have simple **index.html** file in `/var/www/test` and for nginx config I have`/etc/nginx/conf.d/domain.tld.d/test.conf` which looks like this:

```
location /test {
    alias /var/www/test;
    
  

    # Default indexes and catch-all
    index index.html;
    
}

```

A very simple nginx config for index.html which should show content of the index.html, but instead it redirects me to the SSO page.  
The access log shows me:  
`"GET /test HTTP/1.1" 301 248 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"`

Anybody have an idea why its redirecting to SSO?

---

<div class="post-metadata">

**Author:** ![ljf](https://forum.yunohost.org/user_avatar/forum.yunohost.org/ljf/32/58_2.png) [@ljf](https://forum.yunohost.org/u/ljf)\
**Post date:** [January 7, 2018, 9:50pm UTC](https://forum.yunohost.org/t/app-redirecting-to-sso/4074/2 "2018-01-07T21:50:28Z")

</div>

It’s because SSOWat protect all url that are not listed in the skip or unprotected list.

You can configure that by adding your exception in a /etc/ssowat/conf.json.persistent file like this:

```
{
    "skipped_urls": [
        "yourdomain.tld/test"
    ]
}

```

A documentation about possibilities of this file is available in the readme of this repository:

> **[YunoHost/SSOwat](https://github.com/YunoHost/ssowat)**
>
> SSOwat - A simple SSO for nginx, written in Lua

---

<div class="post-metadata">

**Author:** ![kanhu](https://forum.yunohost.org/user_avatar/forum.yunohost.org/kanhu/32/3518_2.png) [@kanhu](https://forum.yunohost.org/u/kanhu)\
**Post date:** [January 7, 2018, 10:14pm UTC](https://forum.yunohost.org/t/app-redirecting-to-sso/4074/3 "2018-01-07T22:14:18Z")

</div>

Thanks that worked.

---

<div class="post-metadata">

**Author:** ![Aleks](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aleks/32/1704_2.png) [@Aleks](https://forum.yunohost.org/u/Aleks)\
**Post date:** [January 18, 2023, 8:16pm UTC](https://forum.yunohost.org/t/app-redirecting-to-sso/4074/4 "2023-01-18T20:16:20Z")

</div>

Closed on January 18, 2023, 8:16pm UTC


