# This is virtual server example file for gallery
# Copy content in virtual server config file or copy this file in
# /etc/nginx/sites-available (aviable in some distrs) and enable this server
server {
listen 80;
server_name gallery.localhost www.gallery.localhost;
# Logs
access_log /var/log/nginx/gallery.access.log;
error_log /var/log/nginx/gallery.error.log;
# Option: enable compression
gzip on;
gzip_min_length 1000;
gzip_disable msie6;
gzip_proxied expired no-cache no-store private auth;
# Option: basic authorization
# auth_basic "My Gallery";
# auth_basic_user_file /etc/ngnix/users.htpasswd;
# Option: SSL
# ssl on;
# ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem;
# ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key;
# ssl_session_cache shared:SSL:10m;
# ssl_session_timeout 10m;
# ssl_protocols SSLv3 TLSv1;
# ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:_EXP;
# ssl_prefer_server_ciphers on;
location / {
perl Nginx::Module::Gallery::handler;
# Change this path to you pictures folder
root /home/rubin/Картинки;
}
}