Difference between revisions of "Package:Tengine"

From Funtoo
Jump to navigation Jump to search
m
m (update page in anticipation of damex pushing the ebuild to the tree.)
Line 6: Line 6:
}}
}}
Tengine is an nginx fork.  It supports DSO module loading, meaning it can have external modules with out the need to compile them in.
Tengine is an nginx fork.  It supports DSO module loading, meaning it can have external modules with out the need to compile them in.
==Install==
==Install==
<console>###i## emerge tengine</console>
{{console|body=###i## emerge tengine}}


==Configuration==
==Configuration==
files for configuration are located at <code>/etc/tengine</code>
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===
===Tengine===
<code>/etc/tengine/tengine.conf</code> contains engine specific configurations.
{{c|/etc/tengine/tengine.conf}} contains engine specific configurations.


===Sites===
===Sites===
<code>/etc/tengine/sites-available/localhost</code> has site specific configurations.  generally localhost is copied to domain.tld file formats in the <code>/etc/tengine/sites-available/</code> directory.
{{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.


==Use==
==Use==
To start the tengine server:
To start the tengine server:
<console>###i## rc-update add tengine
 
###i## rc</console>
{{console|body=###i## rc-update add tengine
###i## rc}}
 
{{EbuildFooter}}
{{EbuildFooter}}

Revision as of 22:44, January 28, 2015

Tengine

   Tip

We welcome improvements to this page. To edit this page, Create a Funtoo account. Then log in and then click here to edit this page. See our editing guidelines to becoming a wiki-editing pro.

Tengine is an nginx fork. It supports DSO module loading, meaning it can have external modules with out the need to compile them in.

Install

root # emerge tengine

Configuration

Files for configuration are located at /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 /var/lib/tengine/modules.

   /etc/tengine/tengine.conf - DSO module statements
...
dso {
	load ngx_http_charset_filter_module.so;
	load ngx_http_fastcgi_module.so;
	load ngx_http_rewrite_module.so;
}
...

Tengine

/etc/tengine/tengine.conf contains engine specific configurations.

Sites

/etc/tengine/sites-available/localhost has site specific configurations. generally localhost is copied to domain.tld file formats in the /etc/tengine/sites-available/ directory.

Use

To start the tengine server:

root # rc-update add tengine
root # rc