最新发布 第3页

Norckon's blog

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 777℃ 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 286℃ 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 513℃ 0 COMMENT 0 LIKE

Server

Deploying WPAD in local network

Deploying WPAD in local network
WHAT IS WPAD The Web Proxy Auto-Discovery Protocol (WPAD) is a method used by clients to locate the URL of a configuration file using DHCP and/or DNS discovery methods. Once detection and download of the configuration file is complete, it can be executed to determine the proxy for a specified URL. HOW DOES I ...

Norckon 2015-11-09 1049℃ 1 COMMENT 0 LIKE

Network

Optimized queue script for MikroTik RouterOS

Optimized queue script for MikroTik RouterOS
INTRODUCE Have you complained about a large gaming latency when somebody downloading file or watching video. Some stronger downloader will takes all the network into busy. But any solution to solve? Yes, this article will told you how to use queue control or manage your network traffic. ENVIRONMENT Network: ...

Norckon 2015-10-18 4243℃ 1 COMMENT 0 LIKE

Server

Make Ubuntu as port redirect server for your routers

Make Ubuntu as port redirect server for your routers
INTRODUCE As we know, If your router behind a firewall or in ISP internal network, you can’t access your router on internet. Fortunately, you can use a server with Public IP (such as VPS) to help you redirect router to Internet through PPTP service. ENVIRONMENT Side OS / Firmware Software Server S ...

Norckon 2015-09-30 900℃ 0 COMMENT 0 LIKE

Server

Enable customization index page for nginx

Enable customization index page for nginx
INTRODUCE The default index page can only show directories or files. Is very simple page. But in sometimes, I want add some information or let index page more pretty. In this time, I need a extra on nginx called FancyIndex. FancyIndex allows some customization of the fancy index pages: Custom headers. (loca ...

Norckon 2015-07-21 1456℃ 1 COMMENT 0 LIKE

Server

Setup permalink for discuz in nginx

Setup permalink for discuz in nginx
INTRODUCE If you enabled discuz permalink function, and you access topic or thread get HTTP 404 error, means you do not have configure rewrite for nginx in your site configuration file. ADDING REWRITE CODE 1. Adding rewrite code in site configuration file location section. location / { Adding rewrit ...

Norckon 2015-05-18 1189℃ 0 COMMENT 0 LIKE

Server

Optimization script for Ubuntu Server (Own use)

Optimization script for Ubuntu Server (Own use)
THIS SCRIPT USED FOR Server ID HN-CS-SW.BBS Date May, 16-17th, 2015 Server Ubuntu Server Version 14.04.2 – amd64 Component nginx, mysql, php5-fpm, iptables, vnc4server, xfce4 THIS SCRIPT INCLUDE 1. Remove and update nginx autostart script update-rc.d -f nginx remove update-rc.d nginx defa ...

Norckon 2015-05-17 1207℃ 1 COMMENT 1 LIKE