ssl_protocols ...
...
ssl_session...
server {
listen 80;
server_name example.ru;
return 301 https://example.ru$request_uri;
}
server {
listen 80;
listen 443 ssl spdy;
server_name www.example.ru;
return 301 https://example.ru$request_uri;
}
server {
listen 443 ssl spdy;
server_name example.ru;
root ...
add_header ...
location ...
}
var flipnabory = ["#flipbook11", "#flipbook12", "#flipbook13", "#flipbook14", "#flipbook15", "#flipbook16"];
flipnabory.forEach(flip) {
$(flip).turn({
width: 220,
height: 250,
autoCenter: true,
display: 'single'
});
});
$(flipnabory.join(',')).turn({
width: 220,
height: 250,
autoCenter: true,
display: 'single'
});
location /yii2-test-job
./index.php
(ктати, никогда не понимал нафига там дописывать ?$args
), вы попадаете в location ~ \.php$
и там действует root сервера.server {
root /var/www/default;
index index.php index.html;
location /yii2-test-job {
alias /var/www/default/yii2-test-job/web;
try_files $uri $uri/ /yii2-test-job/index.php;
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/var/run/php5-fpm.sock;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
}
<input type="checkbox">
<div>xxx</div>
div {
display: none;
}
input:checked + div {
display: block;
}
server {
listen 80 default_server;
return 404;
}
server {
listen 80;
server_name example.com www.example.com;
...
}