Код: Выделить всё
server {
listen 443 ssl;
server_name server.com;
root /usr/share;
index index.html index.htm;
ssl on;
ssl_certificate /etc/ssl/cacert.pem;
ssl_certificate_key /etc/ssl/privkey.pem;
ssl_session_timeout 5m;
ssl_protocols SSLv3 TLSv1;
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP;
ssl_prefer_server_ciphers on;
fastcgi_param HTTPS on;
fastcgi_param HTTP_SCHEME https;
location / {
try_files $uri $uri/ =404;
auth_basic "Authorisation Required";
auth_basic_user_file /usr/share/nginx/www/users;
}
location /public {
root /usr/share/agendav/web/;
index index.php;
location ~ /public/(.+\.php)$ {
try_files $uri $uri/ /index.php;
root /usr/share/agendav/web/;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}
}
Подробнее здесь: https://stackoverflow.com/questions/344 ... php-params
Мобильная версия