Skip to content

Commit

Permalink
* Updated the manpage.
Browse files Browse the repository at this point in the history
  • Loading branch information
António P. P. Almeida committed Aug 9, 2011
1 parent 32328fd commit 4378359
Show file tree
Hide file tree
Showing 3 changed files with 124 additions and 81 deletions.
4 changes: 4 additions & 0 deletions man/index.txt
@@ -0,0 +1,4 @@
## Manuals referenced on this project.
a2ensite(8) http://man.cx/a2ensite
a2dissite(8) http://man.cx/a2dissite
nginx(1) http://man.cx/nginx
161 changes: 90 additions & 71 deletions man/nginx_ensite.8
@@ -1,71 +1,90 @@
.\" Hey, EMACS: -*- nroff -*-
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH NGINX_ENSITE 8 "31 August 2010"
.\" Please adjust this date whenever revising the manpage.
.\"
.\" Some roff macros, for reference:
.\" .nh disable hyphenation
.\" .hy enable hyphenation
.\" .ad l left justify
.\" .ad b justify to both left and right margins
.\" .nf disable filling
.\" .fi enable filling
.\" .br insert line break
.\" .sp <n> insert n+1 empty lines
.\" for manpage-specific macros, see man(7)
.AM
.SH NAME
nginx_ensite, nginx_dissite \- enable or disable an nginx site / virtual host
.SH SYNOPSIS
.B nginx_ensite
.RI [ site ]
.PP
.B nginx_dissite
.RI [ site ]
.SH DESCRIPTION
This manual page documents briefly the
.B nginx_ensite
and
.B nginx_dissite
commands.
.PP
.B nginx_ensite
is a script that enables the specified site which is included in a
http block within the
.B nginx
configuration. It does this by creating symlinks within
.BR /etc/nginx/sites-enabled .
Likewise,
.B nginx_dissite
disables a site by removing those symlinks. It is not an error to
enable a site which is already enabled, or to disable one which is
already disabled.
.PP
The
.B default
site is handled specially: The resulting symlink will be called
.B 000-default
in order to be loaded first.
.SH EXAMPLES
.RS
.B "nginx_dissite default"
.RE
.PP
Disables the
.B default
site.
.SH FILES
.TP
.B /etc/nginx/sites-available
Directory with files giving information on available sites.
.TP
.B /etc/nginx/sites-enabled
Directory with links to the files in
.B sites-available
for enabled sites.
.SH AUTHOR
This manual page was written by Ant\['o]nio Almeida <appa@perusio.net>
(based on the a2ensite manual
page by Stefan Fritsch <sf@debian.org>) for the Debian GNU/Linux distribution.
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "NGINX_ENSITE" "8" "August 2011" "" ""
.
.SH "NAME"
\fBnginx_ensite\fR \- enable/disable an nginx site/virtual host
.
.SH "SYNOPSIS"
\fBnginx_ensite\fR [ \fIsite\fR ]\.\.\.
.
.br
\fBnginx_dissite\fR [ \fIsite\fR ]\.\.\.
.
.br
.
.SH "DESCRIPTION"
This manual page documents briefly the nginx_ensite and nginx_dissite commands\.
.
.P
nginx_ensite is a script that \fBenables\fR the specified site which is included in a http block within the nginx configuration\. It does this by creating symlinks within \fB/etc/nginx/sites\-enabled\fR\.
.
.P
Likewise, nginx_dissite disables a site by removing those symlinks\. It is not an error to enable a site which is already enabled, or to disable one which is already disabled\.
.
.P
The default site is handled specially: the resulting symlink will be called \fB000\-default\fR in order to be listed first\. Note that listing \(em as done by \fBls\fR \(em orders the files lexicographically\. Nginx loads the files by the OS provided order\. To make sure a specific server configuration is loaded first specify the \fBdefault_server\fR parameter on the \fBlisten\fR \fIhttp://wiki\.nginx\.org/HttpCoreModule#listen\fR directive of that server configuration\.
.
.SH "EXAMPLES"
Enable the default site:
.
.IP "" 4
.
.nf

nginx_ensite 000\-default
.
.fi
.
.IP "" 0
.
.P
Disable the default site:
.
.IP "" 4
.
.nf

nginx_dissite 000\-default
.
.fi
.
.IP "" 0
.
.P
Enable the example\.org site:
.
.IP "" 4
.
.nf

nginx_ensite example\.org
.
.fi
.
.IP "" 0
.
.SH "FILES"
\fB/etc/nginx/sites\-available\fR
.
.br
Directory with files providing information on available sites\.
.
.P
\fB/etc/nginx/sites\-enabled\fR
.
.br
Directory with links to the files in \fBsites\-available\fR for enabled sites\.
.
.SH "SEE ALSO"
a2ensite(8), a2dissite(8), nginx(1)
.
.SH "COPYRIGHT"
nginx_ensite is Copyright (C) 2010\-2011 Antonio P\. P\. Almeida <appa@perusio\.net> under the terms of a MIT license\.
.
.SH "AVAILABILITY"
The latest version of nginx_ensite is available from: \fIhttps://github\.com/perusio/nginx_ensite\fR\.
.
.SH "AUTHOR"
nginx_ensite was written by Antonio P\. P\. Almeida <appa@perusio\.net> that also wrote the manual page based on the \fBa2ensite\fR manual page by Stefan Fritsch <sf@debian\.org> for the Debian GNU/Linux distribution\.
40 changes: 30 additions & 10 deletions man/nginx_ensite.8.ronn
@@ -1,5 +1,5 @@
nginx\_dissite, nginx\_ensite -- enable/disable an nginx site/virtual host
================================================================================
==========================================================================

## SYNOPSIS

Expand All @@ -20,17 +20,26 @@ symlinks. It is not an error to enable a site which is already
enabled, or to disable one which is already disabled.

The default site is handled specially: the resulting symlink will be
called `000-default` in order to be loaded first.
called `000-default` in order to be listed first. Note that listing
&mdash; as done by `ls` &mdash; orders the files
lexicographically. Nginx loads the files by the OS provided order. To
make sure a specific server configuration is loaded first specify the
`default_server` parameter on the
[`listen`](http://wiki.nginx.org/HttpCoreModule#listen) directive of
that server configuration.

## EXAMPLES

Enable the default site:
nginx_ensite default

nginx_ensite 000-default

Disable the default site:
nginx_dissite default

nginx_dissite 000-default

Enable the example.org site:

nginx_ensite example.org

## FILES
Expand All @@ -41,12 +50,23 @@ Directory with files providing information on available sites.
`/etc/nginx/sites-enabled` <br>
Directory with links to the files in `sites-available` for enabled sites.

## AUTHOR
## SEE ALSO

This manual page was written by Antonio Almeida \<appa@perusio.net\>
&mdash; based on the `a2ensite` manual page by Stefan Fritsch
\<sf@debian.org\> for the Debian GNU/Linux distribution.
a2ensite(8), a2dissite(8), nginx(1)

## SEE ALSO
## COPYRIGHT

nginx_ensite is Copyright (C) 2010-2011 Antonio P. P. Almeida
\<appa@perusio.net\> under the terms of a MIT license.

## AVAILABILITY

The latest version of nginx_ensite is available from:
[https://github.com/perusio/nginx_ensite](https://github.com/perusio/nginx_ensite).

## AUTHOR

nginx_ensite was written by Antonio P. P. Almeida \<appa@perusio.net\>
that also wrote the manual page based on the `a2ensite` manual page by
Stefan Fritsch \<sf@debian.org\> for the Debian GNU/Linux distribution.

a2ensite(8), a2dissite(8)

0 comments on commit 4378359

Please sign in to comment.