本 Wiki 开启了 HTTPS。但由于同 IP 的 Blog 也开启了 HTTPS,因此本站必须要支持 SNI 的浏览器才能浏览。为了兼容一部分浏览器,本站保留了 HTTP 作为兼容。如果您的浏览器支持 SNI,请尽量通过 HTTPS 访问本站,谢谢!
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录前一修订版后一修订版 | 前一修订版 | ||
other:server:apache:rewirte [2016/09/25 14:55] – haregy | other:server:apache:rewirte [2018/09/24 15:30] (当前版本) – 外部编辑 127.0.0.1 | ||
---|---|---|---|
行 1: | 行 1: | ||
====rewrite ==== | ====rewrite ==== | ||
- | <sxh apache > | + | < |
+ | front door. | ||
+ | There is a small mailbox here. | ||
+ | |||
+ | ></ | ||
+ | |||
+ | < | ||
+ | A leaflet. | ||
+ | |||
+ | ></ | ||
+ | |||
+ | |||
+ | <sxh apache | ||
< | < | ||
DeflateCompressionLevel 6 | DeflateCompressionLevel 6 | ||
行 29: | 行 41: | ||
</ | </ | ||
+ | </ | ||
+ | <sxh css> | ||
+ | .verticalcenter{ | ||
+ | position: relative; | ||
+ | top: 50%; | ||
+ | -webkit-transform: | ||
+ | -o-transform: | ||
+ | transform: translateY(-50%); | ||
+ | } | ||
+ | </ | ||
+ | <sxh php> | ||
+ | /** | ||
+ | * Render xhtml output or metadata | ||
+ | * | ||
+ | * @param string | ||
+ | * @param Doku_Renderer | ||
+ | * @param array $data The data from the handler() function | ||
+ | * @return bool If rendering was successful. | ||
+ | */ | ||
+ | public function render($mode, | ||
+ | if($mode != ' | ||
+ | |||
+ | if (count($data) != 3) { | ||
+ | return true; | ||
+ | } | ||
+ | |||
+ | list($syntax, | ||
+ | if ($syntax == ' | ||
+ | $title = $this-> | ||
+ | $highlight = $this-> | ||
+ | $renderer-> | ||
+ | } else { | ||
+ | $renderer-> | ||
+ | } | ||
+ | |||
+ | return true; | ||
+ | } | ||
+ | </ | ||
+ | <sxh glsl> | ||
+ | varying vec3 normal; | ||
+ | varying vec3 vertex_to_light_vector; | ||
+ | |||
+ | void main() | ||
+ | { | ||
+ | // Defining The Material Colors | ||
+ | const vec4 AmbientColor = vec4(0.1, 0.0, 0.0, 1.0); | ||
+ | const vec4 DiffuseColor = vec4(1.0, 0.0, 0.0, 1.0); | ||
+ | |||
+ | // Scaling The Input Vector To Length 1 | ||
+ | vec3 normalized_normal = normalize(normal); | ||
+ | vec3 normalized_vertex_to_light_vector = normalize(vertex_to_light_vector); | ||
+ | |||
+ | // Calculating The Diffuse Term And Clamping It To [0;1] | ||
+ | float DiffuseTerm = clamp(dot(normal, | ||
+ | |||
+ | // Calculating The Final Color | ||
+ | gl_FragColor = AmbientColor + DiffuseColor * DiffuseTerm; | ||
+ | } | ||
+ | </ | ||
+ | <sxh bash> | ||
+ | #!/bin/bash | ||
+ | |||
+ | echo "hello bash" | ||
+ | |||
+ | exit 0 | ||
</ | </ |