Nginx
- 22 ответа
- 0 вопросов
13
Вклад в тег
interface Instruments {
final static String key = "До мажор";
public void play();
}
class Drum implements Instruments {
public void play() {
System.out.println("бум бац бац бум бац бац");
}
}
class Guitar implements Instruments {
public void play() {
System.out.println("до ми соль до ре до");
}
}
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;
}
}
if $::fqdn in $testing_nginx_servers {
$config = new_config
else {
$config = stable_config
}
::nginx::vhost { 'server.com' :
template => $config
server_name => "${::fqdn} ${title}",
document_root => '/var/www/server.com',
ssl_keys => 'server.com'
}
$testing_nginx_servers = [ 'web-1.server.com', 'web-2.server.com' ]