zeus
3 years ago
6 changed files with 228 additions and 0 deletions
@ -0,0 +1,2 @@ |
|||
#!/bin/sh |
|||
/usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf |
@ -0,0 +1,44 @@ |
|||
server { |
|||
listen 80; |
|||
server_name localhost; |
|||
|
|||
#charset koi8-r; |
|||
#access_log /var/log/nginx/log/host.access.log main; |
|||
|
|||
location / { |
|||
root /data/www; |
|||
index index.html index.htm; |
|||
} |
|||
|
|||
#error_page 404 /404.html; |
|||
|
|||
# redirect server error pages to the static page /50x.html |
|||
# |
|||
error_page 500 502 503 504 /50x.html; |
|||
location = /50x.html { |
|||
root /data/www; |
|||
} |
|||
|
|||
# proxy the PHP scripts to Apache listening on 127.0.0.1:80 |
|||
# |
|||
#location ~ \.php$ { |
|||
# proxy_pass http://127.0.0.1; |
|||
#} |
|||
|
|||
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 |
|||
# |
|||
#location ~ \.php$ { |
|||
# root html; |
|||
# fastcgi_pass 127.0.0.1:9000; |
|||
# fastcgi_index index.php; |
|||
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; |
|||
# include fastcgi_params; |
|||
#} |
|||
|
|||
# deny access to .htaccess files, if Apache's document root |
|||
# concurs with nginx's one |
|||
# |
|||
#location ~ /\.ht { |
|||
# deny all; |
|||
#} |
|||
} |
@ -0,0 +1,29 @@ |
|||
user www-data; |
|||
worker_processes 1; |
|||
|
|||
error_log /var/log/nginx/error.log warn; |
|||
pid /var/run/nginx.pid; |
|||
|
|||
events { |
|||
worker_connections 1024; |
|||
} |
|||
|
|||
http { |
|||
include /etc/nginx/mime.types; |
|||
default_type application/octet-stream; |
|||
|
|||
log_format main '[$time_local] $remote_user:$remote_addr "$request" ' |
|||
'$status $body_bytes_sent "$http_referer" ' |
|||
'"$http_user_agent" "$http_x_forwarded_for"'; |
|||
|
|||
access_log /var/log/nginx/access.log main; |
|||
|
|||
sendfile on; |
|||
#tcp_nopush on; |
|||
|
|||
keepalive_timeout 65; |
|||
|
|||
#gzip on; |
|||
|
|||
include /etc/nginx/conf.d/*.conf; |
|||
} |
@ -0,0 +1,28 @@ |
|||
[unix_http_server] |
|||
file=/dev/shm/supervisor.sock ; (the path to the socket file) |
|||
|
|||
[supervisord] |
|||
logfile=/var/log/supervisord.log ; (main log file;default $CWD/supervisord.log) |
|||
logfile_maxbytes=50MB ; (max main logfile bytes b4 rotation;default 50MB) |
|||
logfile_backups=10 ; (num of main logfile rotation backups;default 10) |
|||
loglevel=info ; (log level;default info; others: debug,warn,trace) |
|||
pidfile=/tmp/supervisord.pid ; (supervisord pidfile;default supervisord.pid) |
|||
nodaemon=false ; (start in foreground if true;default false) |
|||
minfds=1024 ; (min. avail startup file descriptors;default 1024) |
|||
minprocs=200 ; (min. avail process descriptors;default 200) |
|||
user=root ; |
|||
|
|||
[rpcinterface:supervisor] |
|||
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface |
|||
|
|||
[supervisorctl] |
|||
serverurl=unix:///dev/shm/supervisor.sock ; use a unix:// URL for a unix socket |
|||
|
|||
[include] |
|||
files = /etc/supervisor/conf.d/*.conf |
|||
|
|||
[program:nginx] |
|||
command=/usr/sbin/nginx |
|||
numprocs=1 |
|||
autostart=true |
|||
autorestart=true |
@ -0,0 +1,121 @@ |
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
|||
|
|||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> |
|||
<head> |
|||
<title>Test Page for the Nginx HTTP Server on Fedora</title> |
|||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
|||
<style type="text/css"> |
|||
/*<![CDATA[*/ |
|||
body { |
|||
background-color: #fff; |
|||
color: #000; |
|||
font-size: 0.9em; |
|||
font-family: sans-serif,helvetica; |
|||
margin: 0; |
|||
padding: 0; |
|||
} |
|||
:link { |
|||
color: #c00; |
|||
} |
|||
:visited { |
|||
color: #c00; |
|||
} |
|||
a:hover { |
|||
color: #f50; |
|||
} |
|||
h1 { |
|||
text-align: center; |
|||
margin: 0; |
|||
padding: 0.6em 2em 0.4em; |
|||
background-color: #294172; |
|||
color: #fff; |
|||
font-weight: normal; |
|||
font-size: 1.75em; |
|||
border-bottom: 2px solid #000; |
|||
} |
|||
h1 strong { |
|||
font-weight: bold; |
|||
font-size: 1.5em; |
|||
} |
|||
h2 { |
|||
text-align: center; |
|||
background-color: #3C6EB4; |
|||
font-size: 1.1em; |
|||
font-weight: bold; |
|||
color: #fff; |
|||
margin: 0; |
|||
padding: 0.5em; |
|||
border-bottom: 2px solid #294172; |
|||
} |
|||
hr { |
|||
display: none; |
|||
} |
|||
.content { |
|||
padding: 1em 5em; |
|||
} |
|||
.alert { |
|||
border: 2px solid #000; |
|||
} |
|||
|
|||
img { |
|||
border: 2px solid #fff; |
|||
padding: 2px; |
|||
margin: 2px; |
|||
} |
|||
a:hover img { |
|||
border: 2px solid #294172; |
|||
} |
|||
.logos { |
|||
margin: 1em; |
|||
text-align: center; |
|||
} |
|||
/*]]>*/ |
|||
</style> |
|||
</head> |
|||
|
|||
<body> |
|||
<h1>Welcome to <strong>nginx</strong> on Fedora!</h1> |
|||
|
|||
<div class="content"> |
|||
<p>This page is used to test the proper operation of the |
|||
<strong>nginx</strong> HTTP server after it has been |
|||
installed. If you can read this page, it means that the |
|||
web server installed at this site is working |
|||
properly.</p> |
|||
|
|||
<div class="alert"> |
|||
<h2>Website Administrator</h2> |
|||
<div class="content"> |
|||
<p>This is the default <tt>index.html</tt> page that |
|||
is distributed with <strong>nginx</strong> on |
|||
Fedora. It is located in |
|||
<tt>/data/www</tt>.</p> |
|||
|
|||
<p>You should now put your content in a location of |
|||
your choice and edit the <tt>root</tt> configuration |
|||
directive in the <strong>nginx</strong> |
|||
configuration file |
|||
<tt>/etc/nginx/nginx.conf</tt>.</p> |
|||
|
|||
<a href="https://docs.nginx.com/nginx/admin-guide/web-server/serving-static-content/"> |
|||
<img |
|||
src="nginx-logo.png" |
|||
alt="[ Powered by nginx ]" |
|||
width="121" height="32" />More info here</a> |
|||
</div> |
|||
</div> |
|||
|
|||
<div class="logos"> |
|||
<a href="http://nginx.com/"><img |
|||
src="nginx-logo.png" |
|||
alt="[ Powered by nginx ]" |
|||
width="121" height="32" /></a> |
|||
|
|||
<a href="http://swarmlab.io"><img |
|||
src="poweredby.png" |
|||
alt="[ Powered by Swarmlab.io ]" |
|||
width="88" height="31" /></a> |
|||
</div> |
|||
</div> |
|||
</body> |
|||
</html> |
Loading…
Reference in new issue