Skip to content

Instantly share code, notes, and snippets.

@Alir3z4
Created November 7, 2012 12:38
Show Gist options
  • Save Alir3z4/4031378 to your computer and use it in GitHub Desktop.
Save Alir3z4/4031378 to your computer and use it in GitHub Desktop.
# server {
# listen 80;
# server_name exampl.io www.exampl.io;
# access_log /srv/http/exampl.io/orgia/logs/access.log;
# error_log /srv/http/exampl.io/orgia/logs/error.log;
#
# #ssl on;
# #ssl_session_timeout 5m;
# #ssl_certificate /etc/ssl/certs/www.exampl.io.crt;
# #ssl_certificate_key /etc/ssl/private/www.exampl.io.key;
# #ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
# #ssl_ciphers HIGH:!aNULL:!MD5;
# #ssl_prefer_server_ciphers on;
#
# #if ($http_host != "www.exampl.io") {
# rewrite ^ http://www.exampl.io$request_uri permanent;
#}
# location / {
# include uwsgi_params;
# uwsgi_pass 127.0.0.1:9001;
# }
#
# location /static/ {
# alias /srv/http/exampl.io/orgia/static/;
# }
# location /media/ {
# alias /srv/http/exampl.io/orgia/media/;
# }
# }
# server {
# listen 80;
# server_name wmail.exampl.io;
# rewrite ^(.*) https://$server_name$1 permanent;
# }
#
#server {
# listen 443;
# server_name wmail.exampl.io;
# root /srv/http/roundcubemail/;
#
# ssl on;
# ssl_session_timeout 5m;
# ssl_certificate /etc/ssl/certs/wmail.exampl.io.chained.crt;
# ssl_certificate_key /etc/ssl/private/wmail.exampl.io.key;
# ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
# ssl_ciphers HIGH:!aNULL:!MD5;
# ssl_prefer_server_ciphers on;
#
# index index.php index.html;
#
# location / {
# rewrite ^/(.*) https:://wmail.exampl.io$request_uri? permanent;
#
# }
#
# location ~ ^/favicon.ico$ {
# alias /srv/http/roundcubemail/skins/default/images;
# log_not_found off;
# access_log off;
# expires max;
# }
#
# location = /robots.txt {
# allow all;
# log_not_found off;
# access_log off;
# }
#
# location ~ ^/(README|INSTALL|LICENSE|CHANGELOG|UPGRADING)$ {
# deny all;
# }
# location ~ ^/(bin|SQL)/ {
# deny all;
# }
#
# # Deny all attempts to access hidden files such as .htaccess, .htpasswd, .DS_Store (Mac).
# location ~ /\. {
# deny all;
#
# access_log off;
# log_not_found off;
# }
#
# location ~ \.php$ {
# try_files $uri =404;
# alias /srv/http/roundcubemail/;
# include /etc/nginx/fastcgi_params;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
# fastcgi_index index.php;
# }
#}
#server {
# listen 80;
# server_name pxadmin.exampl.io www.pxadmin.exampl.io;
# root /srv/http/postfixadmin/;
#
# access_log /srv/http/postfixadmin/logs/access.log;
# error_log /srv/http/postfixadmin/logs/error.log;
#
# index index.php index.html;
#
# location ~ \.php$ {
# try_files $uri =404;
# alias /srv/http/postfixadmin/;
# include /etc/nginx/fastcgi_params;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
# fastcgi_index index.php;
# }
#}
#server {
# listen 80;
# server_name pgadmin.exampl.io www.pgadmin.exampl.io;
# root /srv/http/phpPgAdmin;
#
# access_log /srv/http/phpPgAdmin/logs/access.log;
# error_log /srv/http/phpPgAdmin/logs/error.log;
#
# index index.php index.html;
#
# location ~ \.php$ {
# try_files $uri =404;
# alias /srv/http/phpPgAdmin/;
# include /etc/nginx/fastcgi_params;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
# fastcgi_index index.php;
# }
#}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment