I am trying to run secondcrack https://github.com/marcoarment/secondcrack that is a php solution to A static-file Markdown blogging engine in a nginx server (the original was only tested in Apache). So does anybody know how to convert this Apaches's .htaccess to nginx syntax? Options -MultiViews AddOutputFilterByType DEFLATE text/html text/plain text/css text/javascript text/xml text/rss tby atipico - How to...
I am using nginx version: nginx/1.2.6 and facing a similar error: Starting nginx: nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: zero size shared memory zone "limit_per_ip" nginx: configuration file /etc/nginx/nginx.conf test failed invoke-rc.d: initscript nginx, action "start" failed. Here's my nginx.conf file: user www-data; worker_proceby atipico - Nginx Mailing List - English
I have different files inside three different directories. I'd like to block access to all files inside those whatever the file extension (and also block directory listing). For example: domain.com/folder/a/file domain.com/folder/b/file domain.com/folder/c/file So far, the bellow is working: location ~ /folder/(a|b|c) { allow 1.2.3.4; deny all; return 403; } However, it isby atipico - How to...
It seams I gave an incomplete tip in my last message. Sorry. Here's how to make it in Bash: echo -e "your-username:`perl -le 'print crypt("your-password","salt")'`" > /etc/nginx/htpasswd There's also an online tool: http://www.htaccesstools.com/htpasswd-generator/by atipico - How to...
I'd like to suggest two easy ways to generate an htpasswd file without having Apache tools installed. Perl perl -le 'print crypt("password", "salt")' So, in bash, we could make something like this: perl -le 'print crypt("password", "salt")' > /etc/nginx/htpasswd Ruby (run in irb) "password".crypt("salt") If the suggestiby atipico - How to...
I know it is a bit far from the original topic but, I have a site with just one file: index.htm witch have some ajax linked to php files. I'd like to make thouse php files only accessable via ajax (post and get) coming from this index file and block access to all files but the index.htm. Is it possible in Nginx?by atipico - Nginx Mailing List - English
Thank you Igor. So what is the difference among doing what you told and this? rewrite ^/adm$ /wp/wp-login.php; Isn't it the case of usind the "alias"? Thank you onc more, Rogerio.by atipico - Nginx Mailing List - English
Please, how can I make this simple operation: I wish that every requests for uris like: http://example.com/adm or: http://example.com/adm Goes to the wordpress login page: wordpress/wp-login.php (The wordpress installation is inside the folder "wordpress"). I've tried: location /adm/ { alias wordpress/wp-login.php; } location /adm { alias wordpress/wp-login.php; }by atipico - Nginx Mailing List - English
All html files are in the folder "htm" in the path: domain.com/htm How can I make Nginx serve? domain.com/index.htm or domain.com/page.htm Detail: For SEO reasons, I don't link the url make a 301 redirect or make the site root the folder "htm" (bacause I have some php called by ajax inside the html file, and the php files are all inside the path: domain.com/phpby atipico - How to...
But how to work with sessions if my first page is a static page? Should I create a session via Ajax?by atipico - Nginx Mailing List - English
I think this is the pointed solution, isn't it? http://nginx.org/pipermail/nginx/2009-June/012814.html http://wiki.nginx.org/HttpUserIdModule Thanks!by atipico - Nginx Mailing List - English
Please, Tony, just to clarify: when you say "protect information by COOKIE", are talking about this? http://nginx.org/pipermail/nginx/2009-June/012857.html Thanks!by atipico - Nginx Mailing List - English
I have a site with just one file: index.htm witch have some ajax linked to php files. I'd like to make thouse php files only accessable via ajax (post and get) coming from this index file and block access to all files but the index.htm. Is it possible in Nginx? Thanks.by atipico - Nginx Mailing List - English
Hi everybody. Please, does anybody installed OpenCart under Nginx with Fastcgi? I am looking forward the server configuration. The only reference I've found of OpenCart on the forum was in russian: http://forum.nginx.org/search.php?2,search=opencart,author=,page=1,match_type=ALL,match_dates=365,match_forum=ALL,match_threads=0 Thanks a lot, Rogerio Madureira http://atipico.com.brby atipico - Nginx Mailing List - English