瀏覽代碼

better example

svn:r4653
Roger Dingledine 20 年之前
父節點
當前提交
a4510dce66
共有 1 個文件被更改,包括 11 次插入4 次删除
  1. 11 4
      doc/tor-hidden-service.html

+ 11 - 4
doc/tor-hidden-service.html

@@ -230,14 +230,21 @@ using it as a hidden service?
 
 
 <p>If you want to forward multiple virtual ports for a single hidden
 <p>If you want to forward multiple virtual ports for a single hidden
 service, just add more HiddenServicePort lines.
 service, just add more HiddenServicePort lines.
-</p>
-
-<p>If you want to run multiple hidden services from the same Tor
+If you want to run multiple hidden services from the same Tor
 client, just add another HiddenServiceDir line. All the following
 client, just add another HiddenServiceDir line. All the following
 HiddenServicePort lines refer to this HiddenServiceDir line, until
 HiddenServicePort lines refer to this HiddenServiceDir line, until
-you add another HiddenServiceDir line.
+you add another HiddenServiceDir line:
 </p>
 </p>
 
 
+<pre>
+HiddenServiceDir /usr/local/etc/tor/hidden_service/
+HiddenServicePort 80 127.0.0.1:8080
+
+HiddenServiceDir /usr/local/etc/tor/other_hidden_service/
+HiddenServicePort 6667 127.0.0.1:6667
+HiddenServicePort 22 127.0.0.1:22
+</pre>
+
 <p>There are some anonymity issues you should keep in mind too:
 <p>There are some anonymity issues you should keep in mind too:
 </p>
 </p>
 <ul>
 <ul>