<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>HTTP &amp; HTTPS on frp</title>
    <link>/frpdoc/en/docs/features/http-https/</link>
    <description>Recent content in HTTP &amp; HTTPS on frp</description>
    <generator>Hugo</generator>
    <language>en</language>
    <atom:link href="/frpdoc/en/docs/features/http-https/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Modify HTTP Request Header</title>
      <link>/frpdoc/en/docs/features/http-https/header/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/frpdoc/en/docs/features/http-https/header/</guid>
      <description>&lt;h2 id=&#34;modify-host-header&#34;&gt;Modify Host Header&lt;/h2&gt;&#xA;&lt;p&gt;Normally, frp will not modify any forwarded data. However, some backend services will display different websites based on the Host field in HTTP request headers, such as nginx&amp;rsquo;s virtual host service. Enabling the Host Header modification feature can dynamically modify the Host field in HTTP requests. Note that this feature is only available for HTTP type proxies.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-toml&#34; data-lang=&#34;toml&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c&#34;&gt;# frpc.toml&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;[[&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;proxies&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;]]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nx&#34;&gt;name&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;web&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nx&#34;&gt;type&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;http&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nx&#34;&gt;localPort&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;mi&#34;&gt;80&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nx&#34;&gt;customDomains&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;test.yourdomain.com&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nx&#34;&gt;hostHeaderRewrite&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;dev.yourdomain.com&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The original Host field &lt;code&gt;test.yourdomain.com&lt;/code&gt; in the HTTP request will be replaced with &lt;code&gt;dev.yourdomain.com&lt;/code&gt; when forwarded to the backend service.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Set BasicAuth Authentication</title>
      <link>/frpdoc/en/docs/features/http-https/auth/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/frpdoc/en/docs/features/http-https/auth/</guid>
      <description>&lt;p&gt;Since all clients share one frps HTTP service port, anyone who knows your domain name and URL can access your services deployed in the intranet. However, in some scenarios, you need to ensure that only limited users can access.&lt;/p&gt;&#xA;&lt;p&gt;frp supports protecting your web services through HTTP Basic Auth, requiring users to access your services through username and password.&lt;/p&gt;&#xA;&lt;p&gt;This feature is currently limited to HTTP type proxies and requires adding username and password settings in frpc&amp;rsquo;s proxy configuration.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Custom Subdomain</title>
      <link>/frpdoc/en/docs/features/http-https/subdomain/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/frpdoc/en/docs/features/http-https/subdomain/</guid>
      <description>&lt;p&gt;When multiple people are using one frps simultaneously, using custom subdomains is more convenient.&lt;/p&gt;&#xA;&lt;p&gt;By configuring &lt;code&gt;subdomainHost&lt;/code&gt; in frps&amp;rsquo;s configuration file, you can enable this feature. After that, in frpc&amp;rsquo;s http and https type proxies, you can configure a &lt;code&gt;subdomain&lt;/code&gt; parameter instead of configuring &lt;code&gt;customDomains&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;You only need to resolve &lt;code&gt;*.{subdomainHost}&lt;/code&gt; to the server where frps is located. After that, users can specify their own subdomain for their web services through subdomain, and access their web services through &lt;code&gt;{subdomain}.{subdomainHost}&lt;/code&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Routing</title>
      <link>/frpdoc/en/docs/features/http-https/route/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/frpdoc/en/docs/features/http-https/route/</guid>
      <description>&lt;h2 id=&#34;url-routing&#34;&gt;URL Routing&lt;/h2&gt;&#xA;&lt;p&gt;frp supports routing and forwarding to different backend services based on the URL path of the request.&lt;/p&gt;&#xA;&lt;p&gt;Specify one or more URL prefixes that a proxy can match through the locations field in the configuration file (currently only supports maximum prefix matching, regex matching will be considered later). For example, specifying &lt;code&gt;locations = &amp;quot;/news&amp;quot;&lt;/code&gt; means all requests with URLs starting with &lt;code&gt;/news&lt;/code&gt; will be forwarded to this service.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
