server {
listen 80 default_server;
listen [::]:80 default_server;
# SSL configuration
#
# listen 443 ssl default_server;
# listen [::]:443 ssl default_server;
#
# Note: You should disable gzip for SSL traffic.
# See: https://bugs.debian.org/773332
#
# Read up on ssl_ciphers to ensure a secure configuration.
# See: https://bugs.debian.org/765782
#
# Self signed certs generated by the ssl-cert package
# Don't use them in a production server!
#
# include snippets/snakeoil.conf;
# root /var/www/html;
root /var/www;
# Add index.php to the list if you are using PHP
index index.php index.html index.htm index.nginx-debian.html;
server_name _;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
}
# pass PHP scripts to FastCGI server
#
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
location ~ /\.ht {
# deny all;
}
}
server {
listen 7535 default_server;
listen [::]:7535 default_server;
server_name _;
root /usr/share/phpmyadmin;
index index.php;
error_log /var/www/logs/pma.error.log;
access_log /var/www/logs/pma.access.log;
keepalive_timeout 1600;
location / {
try_files $uri $uri/ =404;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
}
location ~ /\.ht {
deny all;
}
}
файл надо засунуть туда где у вас все конфиги доменов лежат
Например, truecrypt.
Вы можете зашифровать хоть террабайт информации и один раз смонтировав том получать доступ к дешифрованной информации почти без потери скорости. Ну, по крайней мере, сильной её потери я не заметил. Вопрос рациональности и безопасности такого решения остается открытым, но возможность есть.
В конечном итоге мы постоянно обмениваемся зашифрованными данными (HTTPS ) и это уже стало нормой.