# How can I write my own logout page?

**URL:** <https://help.nextcloud.com/t/how-can-i-write-my-own-logout-page/14676>\
**Category:** ℹ️ Support\
**Created:** [June 28, 2017, 1:43pm UTC](https://help.nextcloud.com/t/how-can-i-write-my-own-logout-page/14676 "2017-06-28T13:43:44Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![ogr](https://help.nextcloud.com/letter_avatar/ogr/32/6_449c533f586939b6e5f246632a46421f.png) [@ogr](https://help.nextcloud.com/u/ogr)\
**Post date:** [September 26, 2017, 2:15pm UTC](https://help.nextcloud.com/t/how-can-i-write-my-own-logout-page/14676/8 "2017-09-26T14:15:00Z")

</div>

And is this set somewhere in your web vhost configuration or only in the Nextcloud “SSO&SAML” Settings?

I use this CAS config:

```
    CASVersion 2
    CASLoginURL https://cas.domain.com/cas/login
    CASValidateURL https://cas.domain.com/cas/serviceValidate
    CASDebug On

    <Location "/nextcloud/index.php/login">
            AuthType CAS
            AuthName "CAS"
            Require valid-user
            CASAuthNHeader HTTP_CAS_USER
    </Location>

    <Location "/nextcloud/index.php/apps/user_saml/saml/login">
            AuthType CAS
            AuthName "CAS"
            Require valid-user
            CASAuthNHeader HTTP_CAS_USER
    </Location>
```

---

_[View the full topic](https://help.nextcloud.com/t/how-can-i-write-my-own-logout-page/14676)._
