mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #3214] [Question] how to expose a local HTTP server with frp and nginx as HTTPS? #2579
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#2579
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @shabakett on GitHub (Dec 17, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/3214
how to expose a local
HTTPserver with frp and nginx asHTTPS?frps.ini
frpc.ini
nginx
https://client1.example.com/returns502 Bad Gateway@Becods commented on GitHub (Dec 18, 2022):
local_port = 8080listen 443 ssl;Check your configuration.
@shabakett commented on GitHub (Dec 18, 2022):
working options:
option1: [
http service]----[frpc]----(vhost_http_port)----[frps]----(proxy_pass http://127.0.0.1:vhost_http_port/ )----[nginx https]---(https://host/ )----[remote client]option2: [
https service]---[frpc]----(vhost_https_port)---[frps]----(https://host:vhost_https_port/ )----------------------------------------------------[remote client]@MelBourbon commented on GitHub (Feb 10, 2023):
Hi @shabakett I currently are facing the same issue. I want to enable the server to serve http as well as https services via nginx.
For
[https service] <-> [frpc] <-> [frps] <-> [nginx:433] <-> https://my.domain.comit is working with the configuration (/etc/frp/https.ini) below.But I receive
502 Bad Gatewayif I want to serve[http service] <-> [frpc] <-> [frps] <-> [nginx:433] <-> https://my.domain.comwith this configuration (/etc/frp/http.ini). Can you share your final configuration?Option 1 will not work for me as then I'm only able to serve http services on my local client.
/etc/frp/frps.ini:/etc/nginx/conf.d/tunnel.conf:/etc/nginx/conf.d/http.conf:/etc/frp/https.ini:/etc/frp/http.ini:@wangwanjie commented on GitHub (May 22, 2023):
thanks, you saved me