Permalink
Browse files

doc on SSL

Reviewers: qigao

Test Plan: read
  • Loading branch information...
1 parent 343822e commit 63f1df41f4ad4ea5ba3efefde7b049fef4204658 @haiping haiping committed with scottmac Sep 28, 2010
Showing with 30 additions and 4 deletions.
  1. +1 −0 doc/index.php
  2. +12 −4 doc/server.rewrite_rules
  3. +17 −0 doc/server.ssl
View
@@ -19,6 +19,7 @@
),
'HTTP Server' => array(
'Rewrite Rules' => 'server.rewrite_rules',
+ 'SSL Setup' => 'server.ssl',
),
'Inconsistencies' => array(
'PHP vs. HipHop' => 'inconsistencies',
View
@@ -2,14 +2,22 @@
Here's how server processes a URL.
-1. Determine which virtual host the URL is on. This is done by matching virtual
+1. Virtual Host
+
+Determine which virtual host the URL is on. This is done by matching virtual
host's "Prefix" or "Pattern" with this URL's domain name.
-2. Prepend with virtual host's PathTranslation.
+2. Path Translation
+
+Prepend with virtual host's PathTranslation.
-3. If the URL/file exists physically, that will be the final resolution. No
+3. Physical Location
+
+If the URL/file exists physically, that will be the final resolution. No
more processing will happen.
-4. Otherwise, each rewrite rule will be checked sequentially in the order of
+4. Rewrite Rules
+
+Otherwise, each rewrite rule will be checked sequentially in the order of
how they appear in configuration file. Once matched, the URL will be re-written
according to the rule.
View
@@ -0,0 +1,17 @@
+<h2>SSL Server Setup</h2>
+
+1. Prepare Certificates
+
+Prepare two files: one certificate file and one key file. Make sure they are
+readble by the user account that runs web server.
+
+2. Configuration Change
+
+Prepare configurations like this,
+
+ Server {
+ EnableSSL = true
+ SSLPort = 443
+ SSLCertificateFile = /full_path_to_certificate
+ SSLCertificateKeyFile = /full_path_to_certificate_file
+ }

0 comments on commit 63f1df4

Please sign in to comment.