Difference between pages "Package:Tengine" and "CPU FLAGS"

(Difference between pages)
(added instructions to build all http modules)
 
 
Line 1: Line 1:
{{Ebuild
+
This page lists processor instruction sets that can be enabled on Funtoo Linux systems using the {{c|CPU_FLAGS_*}} variables.
|Summary=Robust, small and high performance http and reverse proxy server
+
|CatPkg=www-servers/tengine
+
|Maintainer=
+
|Homepage=http://tengine.taobao.org
+
}}
+
Tengine is an nginx fork.  It supports DSO module loading, meaning it can have external modules without the need to compile them in.
+
  
==Installation==
+
==CPU_FLAGS_X86 ==
If you happen to want all modules installed dynamically, you, still, need to install some static modules. Make sure to add this to your {{c|/etc/portage/make.conf}} file:
+
  
{{file|name=/etc/portage/make.conf|desc=Tengine all-modules build|body=
+
{{TableStart}}
...
+
<tr><th>Flag</th><th>Introduced</th><th>Name</th><th></th></tr>
TENGINE_SHARED_MODULES_HTTP="access addition autoindex browser charset_filter empty_gif fastcgi flv footer_filter geoip image_filter limit_conn limit_req lua map memcached mp4 random_index referer reqstat rewrite scgi secure_link slice split_clients sub sysguard tfs trim_filter upstream_ip_hash upstream_least_conn upstream_session_sticky user_agent userid_filter uwsgi xslt"
+
<tr><td>{{c|mmx}}</td><td>1997 (Pentium MMX)</td><td>MMX</td><td>See [[Wikipedia:MMX (instruction set)]] </td></tr>
TENGINE_STATIC_MODULES_HTTP="concat dav degradation geo gunzip gzip gzip_static perl proxy realip spdy ssi ssl stub_status upstream-rbtree upstream_check upstream_consistent_hash upstream_keepalive"
+
<tr><td>{{c|mmxext}}</td><td>1999</td><td>AMD MMX Extensions</td><td>See [[Wikipedia:Extended MMX] </td></tr>
...
+
<tr><td>{{c|popcnt}}</td><td>2007</td><td>POPCNT and LZCNT</td><td>See [[Wikipedia:SSE4#POPCNT_and_LZCNT]]</td></tr>
}}
+
 
+
Then, just:
+
{{console|body=###i## emerge tengine}}
+
 
+
==Configuration==
+
Files for configuration are located at {{c|/etc/tengine}}
+
 
+
The major differing point in tengine from nginx is that you have to specifically declare which modules are loaded.  Available modules are located at {{c|/var/lib/tengine/modules}}.
+
 
+
{{file|name=/etc/tengine/tengine.conf|desc=DSO module statements|body=
+
...
+
dso {
+
load ngx_http_charset_filter_module.so;
+
load ngx_http_fastcgi_module.so;
+
load ngx_http_rewrite_module.so;
+
}
+
...
+
}}
+
 
+
===Tengine===
+
{{c|/etc/tengine/tengine.conf}} contains engine specific configurations.
+
 
+
===Sites===
+
{{c|/etc/tengine/sites-available/localhost}} has site specific configurations.  Generally localhost is copied to domain.tld file formats in the {{c|/etc/tengine/sites-available/}} directory.
+
 
+
==Usage==
+
To start the tengine server:
+
 
+
{{console|body=###i## rc-update add tengine default
+
###i## rc}}
+
 
+
{{EbuildFooter}}
+

Revision as of 18:50, March 26, 2015

This page lists processor instruction sets that can be enabled on Funtoo Linux systems using the CPU_FLAGS_* variables.

CPU_FLAGS_X86

FlagIntroducedName
mmx1997 (Pentium MMX)MMXSee Wikipedia:MMX (instruction set)
mmxext1999AMD MMX ExtensionsSee [[Wikipedia:Extended MMX]
popcnt2007POPCNT and LZCNTSee Wikipedia:SSE4#POPCNT_and_LZCNT