Added configuration example
an example for allow access from both frp.com & www.frp.com
This commit is contained in:
parent
66a69f873f
commit
a86e95f4f6
35
README.md
35
README.md
@ -335,6 +335,41 @@ Now it can't penetrate all types of NAT devices. You can try **stcp** if **xtcp*
|
|||||||
|
|
||||||
`ssh -oPort=6000 test@127.0.0.1`
|
`ssh -oPort=6000 test@127.0.0.1`
|
||||||
|
|
||||||
|
### Acessing http & https from both frps.com & www.frps.com
|
||||||
|
|
||||||
|
1. Config the server with following
|
||||||
|
|
||||||
|
```ini
|
||||||
|
# frps.ini
|
||||||
|
[common]
|
||||||
|
bind_port = 7000
|
||||||
|
vhost_http_port = 80
|
||||||
|
vhost_https_port = 443
|
||||||
|
# auth token
|
||||||
|
token = [yourpassword]
|
||||||
|
subdomain_host = frps.com
|
||||||
|
```
|
||||||
|
2. Config the client with following
|
||||||
|
|
||||||
|
```ini
|
||||||
|
# frpc.ini
|
||||||
|
[common]
|
||||||
|
server_addr = [server's IP or domain name]
|
||||||
|
server_port = 7000
|
||||||
|
token = [yourpassword]
|
||||||
|
|
||||||
|
[web]
|
||||||
|
type = https
|
||||||
|
local_ip = 127.0.0.1
|
||||||
|
local_port = 443
|
||||||
|
use_encryption = false
|
||||||
|
use_compression = false
|
||||||
|
subdomain = www
|
||||||
|
custom_domains = frps.com
|
||||||
|
```
|
||||||
|
|
||||||
|
3. (Optional) open port on firewall to allow tcp income from bind_port 7000
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
### Configuration File
|
### Configuration File
|
||||||
|
Loading…
Reference in New Issue
Block a user