# Nextcloud behind Apache reverse proxy, remote.php becomes remote.phpp

**URL:** <https://help.nextcloud.com/t/nextcloud-behind-apache-reverse-proxy-remote-php-becomes-remote-phpp/52222>\
**Category:** ℹ️ Support\
**Created:** [April 25, 2019, 7:59pm UTC](https://help.nextcloud.com/t/nextcloud-behind-apache-reverse-proxy-remote-php-becomes-remote-phpp/52222 "2019-04-25T19:59:52Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![skjaeve](https://help.nextcloud.com/user_avatar/help.nextcloud.com/skjaeve/32/14825_2.png) [@skjaeve](https://help.nextcloud.com/u/skjaeve)\
**Post date:** [April 27, 2019, 6:20am UTC](https://help.nextcloud.com/t/nextcloud-behind-apache-reverse-proxy-remote-php-becomes-remote-phpp/52222/2 "2019-04-27T06:20:08Z")

</div>

I solved it with the help of [this post](https://help.nextcloud.com/t/reverse-proxy-and-data-directory/24603/7). I needed to remove the trailing slashes from the ProxyPass directives.

> [@skjaeve](#):
>
> ```auto
> ProxyPass "/nextcloud" "http://127.0.0.1:8000/" # Snap instance
> ProxyPassReverse "/nextcloud" "http://127.0.0.1:8000/"
> ProxyPass "/oldcloud" "http://192.168.1.11/oldcloud/" # Not snap
> ProxyPassReverse "/oldcloud" "http://192.168.1.11/oldcloud/"
> ProxyPass "/" "http://127.0.0.1:8001/" # Static files
> ProxyPassReverse "/" "http://127.0.0.1:8001/"
> 
> ```

becomes

```auto
ProxyPass "/nextcloud" "http://127.0.0.1:8000" # Snap instance 
ProxyPassReverse "/nextcloud" "http://127.0.0.1:8000"
ProxyPass "/oldcloud" "http://192.168.1.11/oldcloud" # Not snap
ProxyPassReverse "/oldcloud" "http://192.168.1.11/oldcloud"
ProxyPass "/" "http://127.0.0.1:8001" # Static files
ProxyPassReverse "/" "http://127.0.0.1:8001"

```

---

_[View the full topic](https://help.nextcloud.com/t/nextcloud-behind-apache-reverse-proxy-remote-php-becomes-remote-phpp/52222)._
