%PDF- %PDF-
| Direktori : /etc/nginx.orig/sites-enabled/ |
| Current File : //etc/nginx.orig/sites-enabled/default |
# You may add here your
# server {
# ...
# }
# statements for each of your virtual hosts
#
server {
listen 77.93.194.60:80; listen [2a01:430:12b:0:0:0:0:2]:80; listen 127.0.0.1; ## listen for ipv4
# listen [::]:80 default; ## listen for ipv6
server_name vserver.varak.net;
location / {
root /var/www/;
index index.html index.htm index.php;
autoindex on;
autoindex_exact_size off;
}
# location /music {
# alias /www/music/;
# autoindex on;
# autoindex_exact_size off;
#
# }
location /down {
alias /data/down;
gzip off;
autoindex on;
autoindex_exact_size off;
# deny all;
# allow 77.93.194.60;
# allow 127.0.0.1;
auth_basic "Downloads";
auth_basic_user_file /www/varak.net/catalog.varak.net/.passwd;
}
location /suave {
alias /home/suave/www/;
autoindex on;
autoindex_exact_size off;
}
location /munin {
alias /var/cache/munin/www/;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/$fastcgi_script_name;
}
location ~ \.pl$ {
# include fastcgi_params;
# fastcgi_pass 127.0.0.1:8001;
# fastcgi_index index.pl;
# fastcgi_param SCRIPT_FILENAME /var/www/$fastcgi_script_name;
proxy_pass http://127.0.0.1:8001;
}
location /cddb {
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 10m;
client_body_buffer_size 128k;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_pass http://127.0.0.1:8001;
}
location /~cddb {
proxy_pass http://freedb.musicbrainz.org;
proxy_set_header Host "freedb.musicbrainz.org";
gzip_proxied any;
}
location /nginx_status {
stub_status on;
access_log off;
allow 46.13.67.223;
allow 212.47.28.58;
allow 147.229.212.244;
allow 127.0.0.1;
allow all;
}
}
server {
listen 77.93.194.60:443 ssl spdy; listen [2a01:430:12b:0:0:0:0:2]:443 ssl spdy;
server_name vserver.varak.net;
include ssl_params;
ssl_certificate /home/waritko/cert/varak_net.pem;
ssl_certificate_key /home/waritko/cert/varak_net.key;
location / {
root /var/www/;
index index.html index.htm index.php;
autoindex on;
autoindex_exact_size off;
}
# location /music {
# alias /www/music/;
# autoindex on;
# autoindex_exact_size off;
#
# }
location /down {
alias /data/down/;
gzip off;
autoindex on;
autoindex_exact_size off;
auth_basic "Downloads";
auth_basic_user_file /www/varak.net/catalog.varak.net/.passwd;
}
location /suave {
alias /home/suave/www/;
autoindex on;
autoindex_exact_size off;
}
location /munin {
alias /var/cache/munin/www/;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/$fastcgi_script_name;
}
location ~ \.pl$ {
# include fastcgi_params;
# fastcgi_pass 127.0.0.1:8001;
# fastcgi_index index.pl;
# fastcgi_param SCRIPT_FILENAME /var/www/$fastcgi_script_name;
proxy_pass http://127.0.0.1:8001;
}
location /cddb {
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 10m;
client_body_buffer_size 128k;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_pass http://127.0.0.1:8001;
}
location /~cddb {
proxy_pass http://freedb.musicbrainz.org;
proxy_set_header Host "freedb.musicbrainz.org";
gzip_proxied any;
}
location /nginx_status {
stub_status on;
access_log off;
allow 46.13.67.223;
allow 212.47.28.58;
allow 147.229.212.244;
allow 127.0.0.1;
allow all;
}
}
server {
listen 77.93.194.60:443 ssl spdy; listen [2a01:430:12b:0:0:0:0:2]:443 ssl spdy;
server_name ecdsa.varak.net;
include ssl_params;
ssl_certificate /home/waritko/cert/ec_varak_net.pem;
ssl_certificate_key /home/waritko/cert/ec_varak_net.key;
location / {
root /var/www/;
index index.html index.htm index.php;
autoindex on;
autoindex_exact_size off;
}
# location /music {
# alias /www/music/;
# autoindex on;
# autoindex_exact_size off;
#
# }
location /down {
alias /www/down/;
gzip off;
autoindex on;
autoindex_exact_size off;
auth_basic "Downloads";
auth_basic_user_file /www/varak.net/catalog.varak.net/.passwd;
}
location /suave {
alias /home/suave/www/;
autoindex on;
autoindex_exact_size off;
}
location /munin {
alias /var/cache/munin/www/;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/$fastcgi_script_name;
}
location ~ \.pl$ {
# include fastcgi_params;
# fastcgi_pass 127.0.0.1:8001;
# fastcgi_index index.pl;
# fastcgi_param SCRIPT_FILENAME /var/www/$fastcgi_script_name;
proxy_pass http://127.0.0.1:8001;
}
location /cddb {
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 10m;
client_body_buffer_size 128k;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_pass http://127.0.0.1:8001;
}
location /~cddb {
proxy_pass http://freedb.musicbrainz.org;
proxy_set_header Host "freedb.musicbrainz.org";
gzip_proxied any;
}
location /nginx_status {
stub_status on;
access_log off;
allow 46.13.67.223;
allow 212.47.28.58;
allow 147.229.212.244;
allow 127.0.0.1;
allow all;
}
}
server {
listen 77.93.194.60:80; listen [2a01:430:12b:0:0:0:0:2]:80; listen 127.0.0.1; ## listen for ipv4
server_name knihovna.varak.net;
# access_log /var/log/nginx/knihovna.access.log gzip;
location / {
deny all;
}
}
server {
listen 77.93.194.60:443 ssl spdy; listen [2a01:430:12b:0:0:0:0:2]:443 ssl spdy; ## listen for ipv4
server_name knihovna.varak.net;
include ssl_params;
ssl_certificate /home/waritko/cert/varak_net.pem;
ssl_certificate_key /home/waritko/cert/varak_net.key;
# access_log /var/log/nginx/knihovna.access.log gzip;
location / {
root /www/knihovna/;
auth_basic "knihovna";
auth_basic_user_file /etc/lighttpd/knihovna.pass;
autoindex on;
autoindex_exact_size off;
}
}
server {
listen 77.93.194.60:80; listen [2a01:430:12b:0:0:0:0:2]:80; listen 127.0.0.1; ## listen for ipv4
server_name auction.varak.net;
# access_log /var/log/nginx/auction.varak.net.access.log gzip;
location / {
root /www/auction/;
index index.html index.htm index.php;
}
location /static/ {
root /www/auction/;
add_header Cache-Control public;
expires 24h;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /www/auction/$fastcgi_script_name;
}
location /data/ {
proxy_pass http://127.0.0.1:8071;
gzip_proxied any;
add_header Cache-Control public;
expires 1h;
}
rewrite "^/([^/]+?)/item/([0-9]+)" "/index.php?action=item&realm=$1&item=$2";
rewrite "^/([^/]+?)/search/(.+)$" "/index.php?action=search&realm=$1&query=$2";
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
#error_page 500 502 503 504 /50x.html;
#location = /50x.html {
# root /var/www/nginx-default;
#}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
#proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
#location ~ \.php$ {
#fastcgi_pass 127.0.0.1:9000;
#fastcgi_index index.php;
#fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
#includefastcgi_params;
#}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
#deny all;
#}
}
server {
listen 77.93.194.60:80; listen [2a01:430:12b:0:0:0:0:2]:80; listen 127.0.0.1;
server_name stats2.varak.net;
location / {
proxy_pass http://stats.varak.net;
proxy_set_header Host "stats.varak.net";
}
}
server {
listen 77.93.194.60:80; listen [2a01:430:12b:0:0:0:0:2]:80; listen 127.0.0.1;
server_name ijab.m-hosting.cz;
location / {
proxy_pass https://www.meebo.com/;
proxy_set_header Host "www.meebo.com";
}
}
server {
listen 77.93.194.60:80; listen [2a01:430:12b:0:0:0:0:2]:80; listen 127.0.0.1;
server_name ejab.varak.net;
location / {
proxy_pass http://vserver.varak.net:5280/;
proxy_set_header Host "varak.net";
}
}
server {
listen 77.93.194.60:443 ssl spdy; listen [2a01:430:12b:0:0:0:0:2]:443 ssl spdy;
server_name ejab.varak.net;
include ssl_params;
ssl_certificate /home/waritko/cert/varak_net.pem;
ssl_certificate_key /home/waritko/cert/varak_net.key;
location / {
proxy_pass http://vserver.varak.net:5280/;
proxy_set_header Host "varak.net";
}
}
server {
listen 77.93.194.60:80; listen [2a01:430:12b:0:0:0:0:2]:80; listen 127.0.0.1;
server_name ijab.varak.net;
location / {
proxy_pass https://www.meebo.com/;
proxy_set_header Host "www.meebo.com";
}
}
#mercurial
server {
listen 77.93.194.60:443 ssl spdy; listen [2a01:430:12b:0:0:0:0:2]:443 ssl spdy; ## listen for ipv4
server_name mercurial.varak.net;
include ssl_params;
ssl_certificate /home/waritko/cert/varak_net.pem;
ssl_certificate_key /home/waritko/cert/varak_net.key;
location / {
proxy_pass http://localhost:8010;
auth_basic "Mercurial - import repository";
auth_basic_user_file /home/waritko/mercurial/import.passwd;
}
}
server {
listen 77.93.194.60:80; listen [2a01:430:12b:0:0:0:0:2]:80; listen 127.0.0.1;
server_name mercurial.varak.net;
location / {
proxy_pass http://localhost:8010;
auth_basic "Mercurial - import repository";
auth_basic_user_file /home/waritko/mercurial/import.passwd;
}
}
# another virtual host using mix of IP-, name-, and port-based configuration
#
#server {
#listen 8000;
#listen somename:8080;
#server_name somename alias another.alias;
#location / {
#root html;
#index index.html index.htm;
#}
#}
# HTTPS server
#
#server {
#listen 77.93.194.60:443 ssl spdy; listen [2a01:430:12b:0:0:0:0:2]:443 ssl spdy;
#server_name localhost;
#ssl on;
#ssl_certificate cert.pem;
#ssl_certificate_key cert.key;
#ssl_session_timeout 5m;
#ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
#ssl_ciphers ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:DHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES128-SHA;
#ssl_prefer_server_ciphers on;
#location / {
#root html;
#index index.html index.htm;
#}
#}
server {
listen 77.93.194.60:80; listen [2a01:430:12b:0:0:0:0:2]:80; listen 127.0.0.1; ## listen for ipv4
server_name drevarna.varak.net;
location / {
root /www/varak.net/drevarna.varak.net;
index index.html index.htm index.php;
autoindex on;
autoindex_exact_size off;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /www/varak.net/drevarna.varak.net$fastcgi_script_name;
}
}
server {
listen 77.93.194.60:443 ssl spdy; listen [2a01:430:12b:0:0:0:0:2]:443 ssl spdy;
server_name drevarna.varak.net;
ssl on;
ssl_certificate /etc/nginx/cert.pem;
ssl_certificate_key /etc/nginx/cert.key;
ssl_session_timeout 5m;
ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
ssl_ciphers ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:DHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES128-SHA;
ssl_prefer_server_ciphers on;
location / {
root /www/varak.net/drevarna.varak.net;
index index.html index.htm index.php;
autoindex on;
autoindex_exact_size off;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /www/varak.net/drevarna.varak.net$fastcgi_script_name;
}
}
server {
listen 77.93.194.60:80; listen [2a01:430:12b:0:0:0:0:2]:80; listen 127.0.0.1; ## listen for ipv4
server_name img.varak.net;
location / {
root /www/varak.net/img.varak.net;
index index.html index.htm index.php;
#autoindex off;
autoindex on;
autoindex_exact_size off;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /www/varak.net/img.varak.net$fastcgi_script_name;
}
}
server {
listen 77.93.194.60:443 ssl ssl;
server_name img.varak.net;
ssl on;
ssl_certificate /etc/nginx/cert.pem;
ssl_certificate_key /etc/nginx/cert.key;
ssl_session_timeout 5m;
ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
ssl_ciphers ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:DHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES128-SHA;
ssl_prefer_server_ciphers on;
location / {
root /www/varak.net/img.varak.net;
index index.html index.htm index.php;
autoindex on;
autoindex_exact_size off;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /www/varak.net/img.varak.net$fastcgi_script_name;
}
}
server {
listen 77.93.194.60:80; listen [2a01:430:12b:0:0:0:0:2]:80;
server_name paste.varak.net;
rewrite ^/(.*) https://paste.varak.net$request_uri permanent;
}
server {
listen 77.93.194.60:443 ssl spdy; listen [2a01:430:12b:0:0:0:0:2]:443 ssl spdy;
server_name paste.varak.net;
include ssl_params;
ssl_certificate /home/waritko/cert/varak_net.pem;
ssl_certificate_key /home/waritko/cert/varak_net.key;
root /www/varak.net/paste.varak.net/public;
index index.html index.htm index.php;
autoindex on;
autoindex_exact_size off;
# location / {
# if (!-e $request_filename) {
# rewrite ^/(.*)\.html$ /?page=$1 break;
# }
# rewrite "^/([[:alnum:]]{8})/*$" /?page=paste&id=$1 break;
# rewrite ^/([^-]*)/([^-]*)/$ /?page=$1&act=$2 break;
# }
# location /search {
# rewrite ^/search/([^-]*)$ /?page=last-pastes&searchPaste=$1 break;
# }
location / {
# Redirect Trailing Slashes...
if (!-d $request_filename) {
rewrite ^/(.+)/$ /$1 permanent;
}
# Handle Front Controller...
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php?/$1 last;
break;
}
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /www/varak.net/paste.varak.net/public$fastcgi_script_name;
}
}
server {
listen 77.93.194.60:80; listen [2a01:430:12b:0:0:0:0:2]:80; listen 127.0.0.1; ## listen for ipv4
server_name suave.varak.net;
location / {
root /www/varak.net/suave.varak.net;
index index.html index.htm index.php;
autoindex on;
autoindex_exact_size off;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /www/varak.net/suave.varak.net$fastcgi_script_name;
}
}
server {
listen 77.93.194.60:443 ssl spdy; listen [2a01:430:12b:0:0:0:0:2]:443 ssl spdy;
server_name suave.varak.net;
include ssl_params;
ssl_certificate /home/waritko/cert/varak_net.pem;
ssl_certificate_key /home/waritko/cert/varak_net.key;
location / {
root /www/varak.net/suave.varak.net;
index index.html index.htm index.php;
autoindex on;
autoindex_exact_size off;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /www/varak.net/suave.varak.net$fastcgi_script_name;
}
}
server {
listen 77.93.194.60:80; listen [2a01:430:12b:0:0:0:0:2]:80; listen 127.0.0.1; ## listen for ipv4
server_name suave_skola.varak.net;
location / {
root /www/varak.net/suave_skola.varak.net;
index index.html index.htm index.php;
autoindex on;
autoindex_exact_size off;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /www/varak.net/suave_skola.varak.net$fastcgi_script_name;
}
}
server {
listen 77.93.194.60:443 ssl spdy; listen [2a01:430:12b:0:0:0:0:2]:443 ssl spdy;
server_name suave_skola.varak.net;
include ssl_params;
ssl_certificate /home/waritko/cert/varak_net.pem;
ssl_certificate_key /home/waritko/cert/varak_net.key;
location / {
root /www/varak.net/suave_skola.varak.net;
index index.html index.htm index.php;
autoindex on;
autoindex_exact_size off;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /www/varak.net/suave_skola.varak.net$fastcgi_script_name;
}
}
server {
listen 77.93.194.60:80; listen [2a01:430:12b:0:0:0:0:2]:80; listen 127.0.0.1; ## listen for ipv4
server_name wow2.varak.net;
location / {
root /www/varak.net/wow2.varak.net;
index index.html index.htm index.php;
autoindex on;
autoindex_exact_size off;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /www/varak.net/wow2.varak.net$fastcgi_script_name;
}
}
server {
listen 77.93.194.60:443 ssl spdy; listen [2a01:430:12b:0:0:0:0:2]:443 ssl spdy;
server_name wow2.varak.net;
include ssl_params;
ssl_certificate /home/waritko/cert/varak_net.pem;
ssl_certificate_key /home/waritko/cert/varak_net.key;
location / {
root /www/varak.net/wow2.varak.net;
index index.html index.htm index.php;
autoindex on;
autoindex_exact_size off;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /www/varak.net/wow2.varak.net$fastcgi_script_name;
}
}
server {
listen 77.93.194.60:80; listen [2a01:430:12b:0:0:0:0:2]:80; listen 127.0.0.1; ## listen for ipv4
server_name wowinst.varak.net;
location / {
root /www/varak.net/wowinst.varak.net;
index index.html index.htm index.php;
autoindex on;
autoindex_exact_size off;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /www/varak.net/wowinst.varak.net$fastcgi_script_name;
}
}
server {
listen 77.93.194.60:443 ssl spdy; listen [2a01:430:12b:0:0:0:0:2]:443 ssl spdy;
server_name wowinst.varak.net;
include ssl_params;
ssl_certificate /home/waritko/cert/varak_net.pem;
ssl_certificate_key /home/waritko/cert/varak_net.key;
location / {
root /www/varak.net/wowinst.varak.net;
index index.html index.htm index.php;
autoindex on;
autoindex_exact_size off;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /www/varak.net/wowinst.varak.net$fastcgi_script_name;
}
}
server {
listen 77.93.194.60:80; listen [2a01:430:12b:0:0:0:0:2]:80; listen 127.0.0.1; ## listen for ipv4
server_name www.varak.net;
location / {
root /www/varak.net/www.varak.net;
index index.html index.htm index.php;
autoindex on;
autoindex_exact_size off;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /www/varak.net/www.varak.net$fastcgi_script_name;
}
}
server {
listen 77.93.194.60:443 ssl spdy; listen [2a01:430:12b:0:0:0:0:2]:443 ssl spdy;
server_name www.varak.net;
include ssl_params;
ssl_certificate /home/waritko/cert/varak_net.pem;
ssl_certificate_key /home/waritko/cert/varak_net.key;
location / {
root /www/varak.net/www.varak.net;
index index.html index.htm index.php;
autoindex on;
autoindex_exact_size off;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /www/varak.net/www.varak.net$fastcgi_script_name;
}
}