# Stuck in a login loop when logging in from sync client on Linux

**URL:** <https://help.nextcloud.com/t/stuck-in-a-login-loop-when-logging-in-from-sync-client-on-linux/47549>\
**Category:** ℹ️ Support\
**Created:** [February 14, 2019, 4:53am UTC](https://help.nextcloud.com/t/stuck-in-a-login-loop-when-logging-in-from-sync-client-on-linux/47549 "2019-02-14T04:53:07Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![razor7](https://help.nextcloud.com/user_avatar/help.nextcloud.com/razor7/32/5099_2.png) [@razor7](https://help.nextcloud.com/u/razor7)\
**Post date:** [March 8, 2019, 1:54am UTC](https://help.nextcloud.com/t/stuck-in-a-login-loop-when-logging-in-from-sync-client-on-linux/47549/4 "2019-03-08T01:54:27Z")

</div>

Forget it, just got it working like this

Proxy settings

> ```
> <Proxy />
> Order deny,allow
> Allow from all
> </Proxy>
> 
> ProxyPreserveHost On
> ProxyPass /.well-known/acme-challenge/ !
> ProxyPass / http://lucas.mgscreativa.com.ar:3080/
> ProxyPassReverse / http://lucas.mgscreativa.com.ar:3080/
> 
> ```

NextCloud config

> ```
> 'overwrite.cli.url' => 'https://cloud.mgscreativa.com.ar',
> 'overwriteprotocol' => 'https',
> 'overwritehost' => 'cloud.mgscreativa.com.ar',
> 'trusted_proxies' => array('10.0.0.77'),
> 
> ```

---

_[View the full topic](https://help.nextcloud.com/t/stuck-in-a-login-loop-when-logging-in-from-sync-client-on-linux/47549)._
