# [common] is integral section[common]# A literal address or host name for IPv6 must be enclosed# in square brackets, as in "[::1]:80", "[ipv6-host]:http" or "[ipv6-host%zone]:80"bind_addr=0.0.0.0bind_port=4567# udp port used for kcp protocol, it can be same with 'bind_port'# if not set, kcp is disabled in frpskcp_bind_port=4567vhost_http_port=8088vhost_https_port=5566# console or real logFile path like ./frps.loglog_file=./log/frp/frps.log# debug, info, warn, errorlog_level=debuglog_max_days=3# auth tokenprivilege_mode=truetoken=xxxxxx# It is convenient to use subdomain configure for http、https type when many people use one frps server together.subdomain_host=xistor.top# only allow frpc to bind ports you list, if you set nothing, there won't be any limit#allow_ports = 1-65535# pool_count in each proxy will change to max_pool_count if they exceed the maximum valuemax_pool_count=50# if tcp stream multiplexing is used, default is truetcp_mux=true
server{listen80;listen[::]:80;server_namelocalhost;#access_log /var/log/nginx/host.access.log main;location/{root/var/www/html;indexindex.htmlindex.htm;}#error_page 404 /404.html;# redirect server error pages to the static page /50x.html#error_page500502503504/50x.html;location=/50x.html{root/var/www/html;}# proxy the PHP scripts to Apache listening on 127.0.0.1:80##location ~ \.php$ {# proxy_pass http://127.0.0.1;#}# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000##location ~ \.php$ {# root html;# fastcgi_pass 127.0.0.1:9000;# fastcgi_index index.php;# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;# include fastcgi_params;#}# deny access to .htaccess files, if Apache's document root# concurs with nginx's one##location ~ /\.ht {# deny all;#}}server{listen8443ssl;server_namelocalhost;ssl_certificate/root/certs/xistor.top.cer;ssl_certificate_key/root/certs/xistor.top.key;ssl_session_timeout5m;ssl_ciphersHIGH:!aNULL:!MD5;ssl_protocolsSSLv3TLSv1TLSv1.1TLSv1.2;ssl_prefer_server_cipherson;location/{root/var/www/html;indexindex.htmlindex.htm;}}