Post of 2016 16Thu, 26 May 2016 13:39:16 +0000 05 052016

Server

Location usage and rewrite rules in nginx

Location usage and rewrite rules in nginx
INTRODUCE OF REWRITE A rewrite engine is a software component that performs rewriting on Uniform Resource Locators, modifying their appearance. This modification is called URL rewriting. It is a way of implementing URL mapping or routing within a web application. The engine is typically a component of a web ...

Norckon 2016-05-26 396℃ 1 COMMENT 0 LIKE

Server

Deploying Tengine+Redmine+Gitolite on Ubuntu

Deploying Tengine+Redmine+Gitolite on Ubuntu
INTRODUCE In a project, we need collaboration writing code. Git can help us to manage code, and Gitolite can help us assign permissions for Git, and Redmine can help us to control Gitolite and Git more easier. But, how to deployment a fully project manage system? Please go follow. PREPARING Following this po ...

Norckon 2016-05-25 593℃ 0 COMMENT 0 LIKE

Server

How to remove nginx & PHP versions from HTTP Header

How to remove nginx & PHP versions from HTTP Header
INTRODUCE Unless disabled both nginx and PHP give away their version in the HTTP Header. Here is what that looks like: $ curl -I http://test.local HTTP/1.1 200 OK Server: nginx/1.4.7 Date: Fri, 11 Apr 2014 08:20:36 GMT Content-Type: text/html; charset=UTF-8 Connection: keep-alive Vary: Accept-Encoding ...

Norckon 2016-05-25 284℃ 0 COMMENT 0 LIKE

Server

Compile and Install Tengine on Ubuntu

Compile and Install Tengine on Ubuntu
INTRODUCE Tengine is a web server originated by Taobao, the largest e-commerce website in Asia. It is based on the Nginx HTTP server and has many advanced features. Tengine has proven to be very stable and efficient on some of the top 100 websites in the world, including taobao.com and tmall.com. HOW TO INST ...

Norckon 2016-05-25 711℃ 0 COMMENT 0 LIKE

Server

Find and Replace string in a directory on Linux

Find and Replace string in a directory on Linux
INTRODUCE When I changed website domain, I had a biggest problem is how to replace all domain on numerous web page file. In this time, I can using some command provided by Linux to solve this problem. HOW TO Find file in /usr/local/nginx/html which include string fcsys.us grep -lr 'fcsys.us' /usr/local/nginx ...

Norckon 2016-05-25 194℃ 0 COMMENT 0 LIKE

Website

Understand the Favicon

Understand the Favicon
When Alec Rust asked the HTML5 Boilerplate project to switch to a HiDPI favicon, I realized how little I knew about favorite icons, touch icons, and tile icons. When I decided to dive in a little deeper, things got interesting. Since they were first introduced by Internet Explorer in 1999, almost nothing abo ...

Norckon 2016-05-25 522℃ 0 COMMENT 0 LIKE

Website

HTML5 head meta for mobile browsers

HTML5 head meta for mobile browsers
INTRODUCE With the advent of HTML5, more and more meta has been supported. mostly of them are supported or designed for mobile devices. POSITION IN HTML5 CODE Meta code need insert into following position: <!DOCTYPE html> <!-- Document type declaration --> <html lang="zh-cmn-Hans"> <!-- ...

Norckon 2016-05-25 805℃ 0 COMMENT 0 LIKE

Server

How to set nginx for http and https in same host

How to set nginx for http and https in same host
INTRODUCE Sometimes, I need both http and https protocol work for my website, but a wrong configuration file will cause an error on nginx. But, how to write a right configuration file work on both http and https protocols? WRONG CONFIGURATION FILE server { listen 80; listen 443; ssl ...

Norckon 2016-05-25 312℃ 0 COMMENT 0 LIKE

Server

Using .Htaccess do redirect on Openshift

Using .Htaccess do redirect on Openshift
INTRODUCE I built a website on Openshift, but sometimes I want to do a redirect on Openshift. Now the problem is how to do a redirect on Openshift. As usual, just write .htaccess rule and save to website root directory, redirect will take effect immediately. But on Openshift have some different, Openshift do ...

Norckon 2016-05-25 536℃ 0 COMMENT 0 LIKE