Added configuration example

an example for allow access from both frp.com & www.frp.com
This commit is contained in:
XNG 2018-11-19 13:54:43 +08:00 committed by GitHub
parent 66a69f873f
commit a86e95f4f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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`
### 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
### Configuration File