goproxy/docs/posts/http-nat-cdn/index.html
2021-05-12 12:20:48 +08:00

348 lines
12 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="pinterest" content="nopin">
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
<meta name="generator" content="Hugo 0.56.3" />
<link rel="canonical" href="https://snail007.host900.com/goproxy/posts/http-nat-cdn/">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/styles/solarized_dark.min.css">
<title>内网穿透也能用CDN - GOPROXY IN ACTION</title>
<meta name="description" content="内网穿透通过CDN服务http服务">
<meta property="og:title" content="内网穿透也能用CDN - GOPROXY IN ACTION">
<meta property="og:type" content="article">
<meta property="og:url" content="https://snail007.host900.com/goproxy/posts/http-nat-cdn/">
<meta property="og:image" content="https://snail007.host900.com/goproxy/images/default.png">
<meta property="og:site_name" content="GOPROXY IN ACTION">
<meta property="og:description" content="内网穿透通过CDN服务http服务">
<meta property="og:locale" content="zh_CN">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="GOPROXY IN ACTION">
<meta name="twitter:url" content="https://snail007.host900.com/goproxy/posts/http-nat-cdn/">
<meta name="twitter:title" content="内网穿透也能用CDN - GOPROXY IN ACTION">
<meta name="twitter:description" content="内网穿透通过CDN服务http服务">
<meta name="twitter:image" content="https://snail007.host900.com/goproxy/images/default.png">
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "NewsArticle",
"mainEntityOfPage": {
"@type": "WebPage",
"@id":"https:\/\/snail007.host900.com\/goproxy\/"
},
"headline": "内网穿透也能用CDN - GOPROXY IN ACTION",
"image": {
"@type": "ImageObject",
"url": "https:\/\/snail007.host900.com\/goproxy\/images\/default.png",
"height": 800,
"width": 800
},
"datePublished": "2019-06-28T17:02:57JST",
"dateModified": "2019-06-28T17:02:57JST",
"author": {
"@type": "Person",
"name": "GOPROXY IN ACTION"
},
"publisher": {
"@type": "Organization",
"name": "GOPROXY IN ACTION",
"logo": {
"@type": "ImageObject",
"url": "https:\/\/snail007.host900.com\/goproxy\/images/logo.png",
"width": 600,
"height": 60
}
},
"description": "内网穿透通过CDN服务http服务"
}
</script>
<link href="https://snail007.host900.com/goproxy/css/styles.css" rel="stylesheet">
</head>
<body>
<header class="l-header">
<nav class="navbar navbar-default">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="https://snail007.host900.com/goproxy/">GOPROXY IN ACTION</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav navbar-right">
<li><a href="https://github.com/snail007/goproxy/releases/">下载</a></li>
<li><a href="https://snail007.host900.com/goproxy/categories/goproxy%E6%89%8B%E5%86%8C/">实战</a></li>
<li><a href="https://snail007.host900.com/goproxy/manual/zh/#/">手册</a></li>
<li><a href="/goproxy/about/">关于</a></li>
</ul>
</div>
</div>
</nav>
</header>
<main>
<div class="container">
<div class="row">
<div class="col-md-8">
<nav class="p-crumb">
<ol class="breadcrumb">
<li><a href="https://snail007.host900.com/goproxy/"><i class="fa fa-home" aria-hidden="true"></i></a></li>
<li itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb"><a href="https://snail007.host900.com/goproxy/posts/" itemprop="url"><span itemprop="title">posts</span></a></li>
<li class="active">内网穿透也能用CDN</li>
</ol>
</nav>
<article class="single">
<header>
<ul class="p-facts">
<li><i class="fa fa-calendar" aria-hidden="true"></i><time datetime="2019-06-28T17:02:57JST">Jun 28, 2019</time></li>
<li><i class="fa fa-bookmark" aria-hidden="true"></i><a href="https://snail007.host900.com/goproxy/posts/">posts</a></li>
</ul>
<h1 class="title">内网穿透也能用CDN</h1>
</header>
<div class="article-body">
<h4 id="内网穿透之套cdn">内网穿透之套CDN</h4>
<p><strong>好处就不用说了吧,两个字稳!</strong></p>
<p>假如在windows上配置了可以访问的连接 <a href="http://127.0.0.1:801/abc/index.php">http://127.0.0.1:801/abc/index.php</a> , 如何能使用VPS+CDN做内网穿透呢</p>
<p>配置如下:</p>
<h5 id="1-在vps上执行-配置无误后-再加上-daemon">1. 在VPS上执行配置无误后再加上&ndash;daemon</h5>
<p><code>./proxy bridge -t ws -p &quot;:8080&quot; -C proxy.crt -K proxy.key</code></p>
<p><code>./proxy server -T ws -r &quot;:8880@:801&quot; -P &quot;127.0.0.1:8080&quot; -C proxy.crt -K proxy.key</code></p>
<h5 id="2-在windows上执行">2. 在windows上执行</h5>
<p><code>proxy.exe client -T ws -P &quot;your.domain.com:8080&quot; -C proxy.crt -K proxy.key</code></p>
<h5 id="3-这时在浏览器里访问-http-your-domain-com-8880-abc-index-php-就会看到电脑中的页面了">3. 这时在浏览器里访问:<a href="http://your.domain.com:8880/abc/index.php">http://your.domain.com:8880/abc/index.php</a> ,就会看到电脑中的页面了。</h5>
</div>
<footer class="article-footer">
<section class="bordered">
<header>
<div class="panel-title">CATEGORIES</div>
</header>
<div>
<ul class="p-terms">
<li><a href="https://snail007.host900.com/goproxy/categories/%E9%BB%98%E8%AE%A4%E5%88%86%E7%B1%BB/">默认分类</a></li>
</ul>
</div>
</section>
<section class="bordered">
<header>
<div class="panel-title">TAGS</div>
</header>
<div>
<ul class="p-terms">
<li><a href="https://snail007.host900.com/goproxy/tags/%E5%86%85%E7%BD%91%E7%A9%BF%E9%80%8F/">内网穿透</a></li>
<li><a href="https://snail007.host900.com/goproxy/tags/cdn/">cdn</a></li>
</ul>
</div>
</section>
</footer>
</article>
<div id="disqus_thread"></div>
<script type="application/javascript">
var disqus_config = function () {
};
(function() {
if (["localhost", "127.0.0.1"].indexOf(window.location.hostname) != -1) {
document.getElementById('disqus_thread').innerHTML = 'Disqus comments not available by default when the website is previewed locally.';
return;
}
var d = document, s = d.createElement('script'); s.async = true;
s.src = '//' + "goproxy" + '.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="https://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
</div>
<div class="col-md-4">
<aside class="l-sidebar">
<section class="panel panel-default">
<div class="panel-heading">
<div class="panel-title">LATESTS</div>
</div>
<div class="list-group">
<a href="https://snail007.host900.com/goproxy/usage/first/" class="list-group-item">手册前言(使用必读)</a>
<a href="https://snail007.host900.com/goproxy/page/free_vs_commercial/" class="list-group-item">GOPROXY免费版VS商业版</a>
<a href="https://snail007.host900.com/goproxy/page/faq/goproxy%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98%E8%A7%A3%E7%AD%94/" class="list-group-item">常见问题解答</a>
<a href="https://snail007.host900.com/goproxy/posts/domain-cf/" class="list-group-item">域名解析 域名控制台&#43;极客&#43;cloudflare 的配置方法</a>
<a href="https://snail007.host900.com/goproxy/posts/windows-global-proxy-using-dns/" class="list-group-item">在windows下实现基于dns的自动全局代理</a>
<a href="https://snail007.host900.com/goproxy/usage/tcp/" class="list-group-item">TCP代理</a>
<a href="https://snail007.host900.com/goproxy/posts/cloudflare/" class="list-group-item">Cloudflare使用简明教程</a>
<a href="https://snail007.host900.com/goproxy/posts/http-nat-cdn/" class="list-group-item">内网穿透也能用CDN</a>
<a href="https://snail007.host900.com/goproxy/page/free_vs_commercial_en/" class="list-group-item">GOPROXY Free Version VS Commercial Version</a>
<a href="https://snail007.host900.com/goproxy/posts/http_cdn_ws/" class="list-group-item">代理之套用CDN</a>
</div>
</section>
<section class="panel panel-default">
<div class="panel-heading">
<div class="panel-title">CATEGORY</div>
</div>
<div class="list-group">
<a href="https://snail007.host900.com/goproxy/categories/%E9%BB%98%E8%AE%A4%E5%88%86%E7%B1%BB" class="list-group-item">默认分类</a>
<a href="https://snail007.host900.com/goproxy/categories/goproxy%E6%89%8B%E5%86%8C" class="list-group-item">goproxy手册</a>
<a href="https://snail007.host900.com/goproxy/categories/%E6%9E%B6%E6%9E%84%E8%A7%A3%E8%AF%B4" class="list-group-item">架构解说</a>
<a href="https://snail007.host900.com/goproxy/categories/%E7%BB%86%E8%AF%B4%E5%B1%82%E7%BA%A7" class="list-group-item">细说层级</a>
</div>
</section>
<section class="panel panel-default">
<div class="panel-heading">
<div class="panel-title">TAG</div>
</div>
<div class="list-group">
<a href="https://snail007.host900.com/goproxy/tags/cdn" class="list-group-item">cdn</a>
<a href="https://snail007.host900.com/goproxy/tags/ws" class="list-group-item">ws</a>
<a href="https://snail007.host900.com/goproxy/tags/cloudflare" class="list-group-item">cloudflare</a>
<a href="https://snail007.host900.com/goproxy/tags/%E5%95%86%E4%B8%9A%E7%89%88" class="list-group-item">商业版</a>
<a href="https://snail007.host900.com/goproxy/tags/commercial" class="list-group-item">commercial</a>
<a href="https://snail007.host900.com/goproxy/tags/domain" class="list-group-item">domain</a>
<a href="https://snail007.host900.com/goproxy/tags/tcp" class="list-group-item">tcp</a>
<a href="https://snail007.host900.com/goproxy/tags/%E5%85%A8%E5%B1%80%E4%BB%A3%E7%90%86" class="list-group-item">全局代理</a>
<a href="https://snail007.host900.com/goproxy/tags/%E5%86%85%E7%BD%91%E7%A9%BF%E9%80%8F" class="list-group-item">内网穿透</a>
</div>
</section>
</aside>
</div>
</div>
</div>
</main>
<footer class="l-footer">
<div class="container">
<p><span class="h-logo">&copy; GOPROXY IN ACTION</span></p>
</div>
</footer>
<script src="//code.jquery.com/jquery-3.1.1.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<script>
$(function(){
$("img[css]").each(function(){
$(this).attr("style",$(this).attr("css"));
});
});
</script>
</body>
</html>