[GH-ISSUE #2093] How to forward a location to another location? #1507

Closed
opened 2026-02-26 07:31:21 +03:00 by kerem · 3 comments
Owner

Originally created by @denppa on GitHub (Jun 4, 2022).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2093

iOS uses a different link for webDAV then what the Nextcloud system uses, therefore requiring this bit of code if one is to configure nginx manually:

    location ^~ /.well-known {
        # The rules in this block are an adaptation of the rules
        # in `.htaccess` that concern `/.well-known`.

        location = /.well-known/carddav { return 301 /remote.php/dav/; }
        location = /.well-known/caldav  { return 301 /remote.php/dav/; }

        location /.well-known/acme-challenge    { try_files $uri $uri/ =404; }
        location /.well-known/pki-validation    { try_files $uri $uri/ =404; }

Therefore I want to know hot should I set these rules manually in the npm UI. Thank you!

Originally created by @denppa on GitHub (Jun 4, 2022). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2093 iOS uses a different link for webDAV then what the Nextcloud system uses, therefore requiring this bit of code if one is to configure nginx manually: ``` location ^~ /.well-known { # The rules in this block are an adaptation of the rules # in `.htaccess` that concern `/.well-known`. location = /.well-known/carddav { return 301 /remote.php/dav/; } location = /.well-known/caldav { return 301 /remote.php/dav/; } location /.well-known/acme-challenge { try_files $uri $uri/ =404; } location /.well-known/pki-validation { try_files $uri $uri/ =404; } ``` Therefore I want to know hot should I set these rules manually in the npm UI. Thank you!
kerem closed this issue 2026-02-26 07:31:21 +03:00
Author
Owner

@denppa commented on GitHub (Jun 5, 2022):

example.png

This is what you need to put down, just redirect to the same Forward destination as the details page.

<!-- gh-comment-id:1146714008 --> @denppa commented on GitHub (Jun 5, 2022): [![example.png](https://i.postimg.cc/d02XrDfX/example.png)](https://postimg.cc/CZKmVMSH) This is what you need to put down, just redirect to the same Forward destination as the details page.
Author
Owner

@billvanleeuwen424 commented on GitHub (Jan 8, 2023):

Just wanted to say thanks for posting this here! Saved me a big headache on my personal server.
got here from the nextcloud forms where a helpful user posted his journey.
https://help.nextcloud.com/t/cannot-connect-ios-carddav-caldav-to-nextcloud/140046/3

<!-- gh-comment-id:1374934707 --> @billvanleeuwen424 commented on GitHub (Jan 8, 2023): Just wanted to say thanks for posting this here! Saved me a big headache on my personal server. got here from the nextcloud forms where a helpful user posted his journey. https://help.nextcloud.com/t/cannot-connect-ios-carddav-caldav-to-nextcloud/140046/3
Author
Owner

@Chyllie commented on GitHub (Mar 10, 2024):

Hey I made a mistake and used the line "return 301 $scheme://$host/remote.php/dav;" in Advanced tab in Nginx docker. Now the site forwards directly to the remote.php/dav. Can I set this back to the original config, what do I need to write in Advanced tab? Deleting and making a new Forwarding does not help.

<!-- gh-comment-id:1987180968 --> @Chyllie commented on GitHub (Mar 10, 2024): Hey I made a mistake and used the line "return 301 $scheme://$host/remote.php/dav;" in Advanced tab in Nginx docker. Now the site forwards directly to the remote.php/dav. Can I set this back to the original config, what do I need to write in Advanced tab? Deleting and making a new Forwarding does not help.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#1507
No description provided.