file { '/etc/motd' :
ensure => present,
source => 'puppet:///files/motd.conf'
}
server {
listen 80;
server_name domain.com;
location / {
proxy_pass http://domain.com:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_connect_timeout 120;
proxy_send_timeout 120;
proxy_read_timeout 180;
}
location ~* \.(jpg|jpeg|gif|png|svg|js|css|swf)$ {
root /var/www/html/domain.com;
}
}
Number of hosts (monitored/not monitored/templates) 110 47 / 1 / 62
Number of items (monitored/disabled/not supported) 2361 2254 / 40 / 67
Number of triggers (enabled/disabled) [problem/ok] 1104 1058 / 46 [2 / 1056]
Number of users (online) 7 2
Required server performance, new values per second 38.88 -
load average: 0.38, 0.61, 0.72
%Cpu(s): 9.9 us, 3.0 sy, 0.6 ni, 85.7 id, 0.4 wa, 0.0 hi, 0.3 si, 0.1 st
server {
listen 80;
server_name domain.ru;
root /var/www/domain.ru;
access_log /data/logs/nginx/domain.ru.access.log main;
error_log /data/logs/nginx/domain.ru.error.log;
location / {
index index.html index.htm index.php;
if (!-e $request_filename) {
rewrite ^.*$ /index.php last;
}
}
location ~* ^.+\.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js|mov|xml|flv|f4v)$ {
add_header Cache-Control public;
expires 24h;
}
location ~ \.php$ {
fastcgi_pass unix:/var/run/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}