Caddy Reverse Proxy working internally, but not externally

Need help? Post your questions here.

Moderator: moderators

Caddy Reverse Proxy working internally, but not externally

Postby Oc9nBd9s » Sun May 12, 2019 1:05 pm

I am having some issues getting Subsonic to work properly. It works internally without issues. Externally I get to the login page, enter my login ID and password and then get redirected to an error page from my router. I have tried a different port with the same result. I also treied different browsers and clearing my cache. I have tried from inside and outside my network with the same results as well as from Windows and iOS devices.

Seems like others have gotten a bit farther than I, but have faced issues using other reverse proxies. I see other are able to get logged in and see the home age and some functionality works, but not all. I am not sure how to translate those solution's to Caddy langauge. Hoping someone else has a babel fish and can help.

viewtopic.php?f=2&t=18070&p=76729&hilit=proxy#p76729

viewtopic.php?f=2&t=17584&p=74716&hilit=caddy#p74716

https://serverfault.com/questions/87056 ... -the/87059

Caddy code block and external curl request is below. An internal curl returns no results, but it is working internally.

Caddy Code Block
####################################################################################
#Subsonic Admin subdomain code block example
####################################################################################
jukebox.external.net http://internal.subsonic {
tls user@mydomain.net # Email for Let's Encrypt Verification
gzip
log "C:\Users\user\Documents\caddy\logs\subsonic_access.log" {
rotate_size 1 # Rotate after 1 MB
rotate_age 7 # Keep log files for 7 days
rotate_keep 2 # Keep at most 2 log files
}
errors "C:\Users\user\Documents\caddy\logs\subsonic_error.log" {
rotate_size 1 # Set max size 1 MB
rotate_age 7 # Keep log files for 7 days
rotate_keep 2 # Keep at most 2 log files
}
proxy / 192.168.1.103:4040/subsonic/ { #http://www.subsonic.org
without /subsonic
transparent
}
}

External curl
<!DOCTYPE html>
<html dir="ltr" lang="en-US">
<head>
<!--
2017 Belkin International, Inc. and/or its affiliates. All rights reserved.

$Author$
$DateTime$
$Id$
-->
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="" />

<title>Linksys Smart Wi-Fi</title>

<link type="image/x-icon" rel="shortcut icon" href="/favicon.ico" />
<!--big.css-->
<!--BEGIN_COMBINED-->
<link type="text/css" rel="stylesheet" href="/ui/1.0.99.180968/static/cache/css/reset.css" />
<link type="text/css" rel="stylesheet" href="/ui/1.0.99.180968/static/cache/css/connect.css" />
<link type="text/css" rel="stylesheet" href="/ui/1.0.99.180968/static/cache/css/applet-ui.css" />
<link type="text/css" rel="stylesheet" href="/ui/1.0.99.180968/static/cache/css/validation.css" />
<link type="text/css" rel="stylesheet" href="/ui/1.0.99.180968/static/cache/css/checkbox-radio.css" />
<link type="text/css" rel="stylesheet" href="/ui/1.0.99.180968/static/cache/css/components.css" />
<!--END_COMBINED-->

<!--[if lte IE 9]>
<script type="text/javascript" src="/ui/1.0.99.180968/static/cache/js/lib/webshim/extras/loaders/yepnope.js"></script>
<script type="text/javascript" src="/ui/1.0.99.180968/static/cache/js/console.js"></script>
<![endif]-->
</head>
<body class="applet-view">
<div id="scroll-container">
<article id="main">
<section id="widget-container">
<div id="widget-shield" style="background:gray;"></div>
<div id="widget-copyright" style="display:block;">
<div class="copyright-content">
<div><a class="terms-and-conditions">End User License Agreement</a><span class="pipe">|</span><a class="terms-of-service">Terms of Service</a><span class="pipe">|</span><a class="privacy-statement">Privacy Statement</a><span class="pipe">|</span><a id="third-party-licenses">Third Party Licenses</a></div>
<div>&#169; 2017 Belkin International, Inc. and/or its affiliates. All rights reserved.</div>
</div>
</div>
</section>
<section id="nav-container">
<div id="nav-cliff">
<div id="nav-shadow">
<div id="nav-shadow-fade">
</div>
</div>
</div>
<nav><ul></ul></nav>
</section>
<section id="applet-container" style="visibility:hidden">
<article id="error-container" class="login-wrapper">
<header class="error-header">
<h1>404 - Page Not Found</h1>
</header>
<section id="error-main-content">
<div class="attention">
<p id="content-404">
Sorry, but we can't open the page. It's either unavailable at this time, or no longer exists.<br />
Go to http://www.linksyssmartwifi.com &lt;<a href="http://www.linksyssmartwifi.com">http://www.linksyssmartwifi.com</a>&gt;&#8206;
</p>
</div>
</section>
</article>
</section>
</article>
<div id="header-bg-main"></div>
<header>
<div class="content">
<div class="logo"></div>
</div>
</header>
</div>
<div id="dialog-overlay" class="dialog-overlay" style="display:none"></div>
<div id="components"><!-- This will be filled in with contents of components.html --></div>

<script type="text/javascript" src="/ui/1.0.99.180968/dynamic/js/ui.js.localized"></script><!-- MUST load prior to ui.js -->
<!--big.js-->
<!--BEGIN_COMBINED-->
<script type="text/javascript" src="/ui/1.0.99.180968/static/cache/js/lib/jquery.js"></script>
<script type="text/javascript" src="/ui/1.0.99.180968/static/cache/js/lib/jquery.cookie.js"></script>
<script type="text/javascript" src="/ui/1.0.99.180968/static/cache/js/browser.js"></script>
<script type="text/javascript" src="/ui/1.0.99.180968/static/cache/js/lib/webshim/extras/html5shiv.js"></script>
<script type="text/javascript" src="/ui/1.0.99.180968/static/cache/js/lib/webshim/extras/modernizr-custom.js"></script>
<script type="text/javascript" src="/ui/1.0.99.180968/static/cache/js/lib/webshim/polyfiller.js"></script>
<script type="text/javascript" src="/ui/1.0.99.180968/static/cache/js/shims.js"></script>
<script type="text/javascript" src="/ui/1.0.99.180968/static/cache/js/shared/shared-util.js"></script>
<script type="text/javascript" src="/ui/1.0.99.180968/static/cache/js/util.js"></script>
<script type="text/javascript" src="/ui/1.0.99.180968/static/cache/js/linksys.js"></script>
<script type="text/javascript" src="/ui/1.0.99.180968/static/cache/js/shared/shared-ui.js"></script>
<script type="text/javascript" src="/ui/1.0.99.180968/static/cache/js/ui.js"></script>
<script type="text/javascript" src="/ui/1.0.99.180968/static/cache/js/data-bind.js"></script>
<script type="text/javascript" src="/ui/1.0.99.180968/static/cache/js/lib/jquery.ui.widget.js"></script>
<script type="text/javascript" src="/ui/1.0.99.180968/static/cache/js/jnap.js"></script>
<script type="text/javascript" src="/ui/1.0.99.180968/static/cache/js/globals.js"></script>
<script type="text/javascript" src="/ui/1.0.99.180968/static/cache/js/devices.js"></script>
<script type="text/javascript" src="/ui/1.0.99.180968/static/cache/js/language.js"></script>
<script type="text/javascript" src="/ui/1.0.99.180968/static/cache/js/lib/ui.checkbox.js"></script>
<script type="text/javascript" src="/ui/1.0.99.180968/static/cache/js/help.js"></script>
<!--END_COMBINED-->
<script type="text/javascript">
$('#applet-container').css('visibility', 'visible');
</script>
</body>
</html>
Oc9nBd9s
 
Posts: 5
Joined: Tue Oct 11, 2016 5:45 pm

Return to Help

Who is online

Users browsing this forum: Bing [Bot] and 7 guests