# NCP change acces from https://lan-ip to https://lan-ip/nextcloud and https://no-ip ddns name to https://no-ip ddns name/nextcloud

**URL:** <https://help.nextcloud.com/t/ncp-change-acces-from-https-lan-ip-to-https-lan-ip-nextcloud-and-https-no-ip-ddns-name-to-https-no-ip-ddns-name-nextcloud/100459>\
**Category:** 📦 Appliances (Docker, Snappy, VM, NCP, AIO)\
**Tags:** reverseproxy, local\_network, ncp\
**Created:** [December 7, 2020, 4:12pm UTC](https://help.nextcloud.com/t/ncp-change-acces-from-https-lan-ip-to-https-lan-ip-nextcloud-and-https-no-ip-ddns-name-to-https-no-ip-ddns-name-nextcloud/100459 "2020-12-07T16:12:15Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Timur\_Yildirim](https://help.nextcloud.com/user_avatar/help.nextcloud.com/timur_yildirim/32/32132_2.png) [@Timur\_Yildirim](https://help.nextcloud.com/u/Timur_Yildirim)\
**Post date:** [December 7, 2020, 4:12pm UTC](https://help.nextcloud.com/t/ncp-change-acces-from-https-lan-ip-to-https-lan-ip-nextcloud-and-https-no-ip-ddns-name-to-https-no-ip-ddns-name-nextcloud/100459/1 "2020-12-07T16:12:15Z")

</div>

Hi, to be able to use more than one webserver on my raspberry pi 4 using nextcloudpi script i want to change the access to my nextcloud server to [https://192.168.0.15/nextcloud](https://192.168.0.15/nextcloud) (as normally used when settings up nextcloud manually) from [https://192.168.0.15](https://192.168.0.15) used by default with nextcloudpi script

And also to be able to use it outside from lan, it should use my no-ip domain name with “/nextcloud” at the end

and normally [https://192.168.0.15](https://192.168.0.15) should show default apache screen

I want to use it with octopi(3d printing).

Im pretty new to raspberry and linux so every help would be great. thanks

---

<div class="post-metadata">

**Author:** ![OliverV](https://help.nextcloud.com/user_avatar/help.nextcloud.com/oliverv/32/5741_2.png) [@OliverV](https://help.nextcloud.com/u/OliverV)\
**Post date:** [December 8, 2020, 6:11pm UTC](https://help.nextcloud.com/t/ncp-change-acces-from-https-lan-ip-to-https-lan-ip-nextcloud-and-https-no-ip-ddns-name-to-https-no-ip-ddns-name-nextcloud/100459/2 "2020-12-08T18:11:48Z")

</div>

tried changing config.php ?

```auto
'overwrite.cli.url' => 'https://192.168.0.15/nextcloud',

```

This question has already been asked and answered many times here and on the www.  
Ever tried the forum search? Works for me 😉

---

<div class="post-metadata">

**Author:** ![Timur\_Yildirim](https://help.nextcloud.com/user_avatar/help.nextcloud.com/timur_yildirim/32/32132_2.png) [@Timur\_Yildirim](https://help.nextcloud.com/u/Timur_Yildirim)\
**Post date:** [December 8, 2020, 6:56pm UTC](https://help.nextcloud.com/t/ncp-change-acces-from-https-lan-ip-to-https-lan-ip-nextcloud-and-https-no-ip-ddns-name-to-https-no-ip-ddns-name-nextcloud/100459/3 "2020-12-08T18:56:10Z")

</div>

Hi, yeah I already searched in the forum and I’ve come to that also changing

‘overwrite.cli.url’ =\> ‘[https://192.168.0.15/nextcloud](https://192.168.0.15/nextcloud)’

But that didn’t worked that’s why I created a new post

😕

---

<div class="post-metadata">

**Author:** ![Timur\_Yildirim](https://help.nextcloud.com/user_avatar/help.nextcloud.com/timur_yildirim/32/32132_2.png) [@Timur\_Yildirim](https://help.nextcloud.com/u/Timur_Yildirim)\
**Post date:** [December 9, 2020, 10:11am UTC](https://help.nextcloud.com/t/ncp-change-acces-from-https-lan-ip-to-https-lan-ip-nextcloud-and-https-no-ip-ddns-name-to-https-no-ip-ddns-name-nextcloud/100459/4 "2020-12-09T10:11:19Z")

</div>

![Capture d’écran 2020-12-09 110923](https://help.nextcloud.com/uploads/default/original/3X/b/5/b52b4c8d707867908a65534bd6322c69bddb51af.jpeg)

Here look at my config.php

I did a sudo reboot after putting this of course but still no chance ☹

---

<div class="post-metadata">

**Author:** ![OliverV](https://help.nextcloud.com/user_avatar/help.nextcloud.com/oliverv/32/5741_2.png) [@OliverV](https://help.nextcloud.com/u/OliverV)\
**Post date:** [December 9, 2020, 12:29pm UTC](https://help.nextcloud.com/t/ncp-change-acces-from-https-lan-ip-to-https-lan-ip-nextcloud-and-https-no-ip-ddns-name-to-https-no-ip-ddns-name-nextcloud/100459/5 "2020-12-09T12:29:37Z")

</div>

I’d try redirect in .htaccess or use RedirectMatch in apache2’s nextcloud.conf  
I thought ‘overwrite.cli.url’ would do the trick? I’d try with just ‘/nextcloud’,  
I’ve never had the need to do this, so not sure, maybe someone more knowledgeable will stop by and provide an official way to achieve this.

some examples [https://chemicloud.com/kb/article/redirect-domain-using-htaccess/](https://chemicloud.com/kb/article/redirect-domain-using-htaccess/)

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 12, 2024, 9:26pm UTC](https://help.nextcloud.com/t/ncp-change-acces-from-https-lan-ip-to-https-lan-ip-nextcloud-and-https-no-ip-ddns-name-to-https-no-ip-ddns-name-nextcloud/100459/6 "2024-12-12T21:26:46Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 12, 2024, 9:26pm UTC](https://help.nextcloud.com/t/ncp-change-acces-from-https-lan-ip-to-https-lan-ip-nextcloud-and-https-no-ip-ddns-name-to-https-no-ip-ddns-name-nextcloud/100459/7 "2024-12-12T21:26:48Z")

</div>


