# Virtual wiki.atyu30.com # author atyu30 # Date: 2011/08/31 # uname-r-m-o #2.6.18-194. EL5 x86_64 GNU/Linux # nginx-V # nginx: nginx version: nginx/1.1.1 # Change 2011/09/02 # MediaWiki-1.17.0 PHP-FPM nginx sphinxserver {Listen 443; # Listen 80; SERVER_NAME wiki.atyu30.com; charset UTF-8; fastcgi_paramhttps $ fastcgi_https; Location/{root/var/www/mediawiki-1.16.4; Index. PHP index.html index.htm; # Set The requested nonexistent file is overwritten to index. php try_files $ URI // index. php; If (! -F $ request_filename) {rewrite ^/([^?] *)(? :\? (.*))? /Index. php? Title = $1 & $2 last; rewrite (. *)/index. php ;}} location ~ \. PHP $ {root/var/www/mediawiki-1.16.4; fastcgi_pass 127.0.0.1: 9000; fastcgi_index index. PHP; fastcgi_intercept_errors on; fastcgi_param script_filename $ document_root $ fastcgi_script_name; Include fastcgi_params; authorization;} SSL on; ssl_certificate/etc/pki/tls/certs/server. CRT; ssl_certificate_key/etc/pki/tls/private/server. key; ssl_session_timeout 5 m; ssl_protocols SSLv2 SSLv3 t Lsv1; ssl_ciphers all :! ADH :! Export56: RC4 + RSA: + high: + medium: + low: + SSLv2: + exp; ssl_prefer_server_ciphers on;} map $ scheme $ fastcgi_https {default off; HTTPS on ;}