:: Setup XFileSharing on NGINX
Posted by blackonsole on May 14th, 2012 06:44 AM | No Comment
:: How to setup XFileSharing with NGINX
+ installing and setup fcgiwrap for nginx
wget //github.com/gnosek/fcgiwrap/tarball/master
tar -xzf master
cd gnosek-fcgiwrap-1328862
autoreconf -i
./configure
make
make install
+ create fastcgi socket
vi fastcgisock.pl
add these line:
#!/usr/bin/perl
use strict;
use warnings FATAL => qw( all );
use IO::Socket::UNIX;
my $bin_path = '/usr/local/bin/fcgiwrap';
my $socket_path = $ARGV || ...
:: NGINX: [emerg] directive "rewrite" is not terminated by ";"
Posted by blackonsole on May 8th, 2012 07:19 PM | 3 Comments
:: Error when reload / restart nginx
nginx -s reload
nginx: directive "rewrite" is not terminated by ";" /etc/nginx/vhost/blackonsole.org.conf:15
in line 15 use { and } characters in the regular expressions conflict with the block delimiter of the Nginx configuration file syntax ...
:: NGINX : Redirect to external URL
Posted by blackonsole on May 7th, 2012 12:05 PM | No Comment
:: How to redirect to external url on NGINX
+ create configure file
vi /etc/nginx/vhosts/blackonsole.org.conf
added configuration like these:
server {
listen 80;
server_name blackonsole.org www.blackonsole.org;
...
:: Install DBMail Administrator on CentOS
Posted by blackonsole on December 2nd, 2011 10:14 AM | 1 Comment
:: What is DBMA
DBMail is an open source, Unix IMAP/POP3 mail storage and retrieval system which together with an MTA (Mail Transfer Agent) like Postfix enables vastly scalable mail systems with SQL database (RDBMS) storage (i.e.: MySQL, PostgreSQL) and retrieval of all e-mail and user data. - dbma
:: nginx reverse proxy with apache
Posted by blackonsole on May 13th, 2011 08:00 AM | 5 Comments
:: how to installing nginx on linux debian
# aptitude install nginx
:: configure nginx as reverse proxy
+ create reverse proxy setup file
# cd /etc/nginx/conf.d
# vi proxy.conf
#### reverse proxy setup for nginx
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_buffers 32 ...
Protecting a folder on nginx
Posted by blackonsole on March 29th, 2011 03:03 PM | No Comment
|| how to protecting a folder with password on nginx
| generate htpasswd password using perl
# perl -le 'print crypt("yourpassword", "salt")'
| make htpasswd
# vi /etc/nginx/conf/htpasswd
username:eNcRyPtIoNpAsSwOrd:justcomment
| setup on nginx.conf / vhost
# vi /etc/nginx/nginx.conf
# add line like this
location ^~/afoldername {
...
vhost on nginx
Posted by blackonsole on March 26th, 2011 02:56 AM | 2 Comments
|| how to setup vhost on nginx
+ create directory for vhost
# cd /var/www
# mkdir -p blackonsole.org/{htdocs,logs,stats}
# mkdir -p blackonsole.com/{htdocs,logs,stats}
+ create vhost conf file
# vi /etc/nginx/conf.d/blackonsole.org.conf
server {
listen 80;
server_name blackonsole.org www.blackonsole.org;
...