Interesting idea. Is try_files less resource-intensive? Just curious why it would be more efficient.by androo - How to...
Okay, I figured it out. For the record: 1. The rewrite stanza has to go after, not before, the php stanza. 2. Also, with G3 at /home/gallery3/, the rewrite stanza has to look like this: location ~ /gallery3/ { root /home; index index.html index.php; if (!-e $request_filename) { rewrite ^/gallery3/(.*)$ /gallery3/index.php?kohana_uri=$1 last;by androo - How to...
I have a PHP application that runs just fine, but when I try to set up a short-URL rewrite it breaks. Here's the original stanza for the virtual server, with long URLs: server { listen 80; server_name example.com; access_log /path/to/log main; location / { root /path/to/example.com; index index.html index.php; } location ~ \.(html|php) {by androo - How to...
Thanks, androo On Wed, 2009-04-08 at 19:22 -0400, androo wrote: > Can nginx act as a pop3 server or only as a pop3 *proxy* server? In > other words, can I use it to fetch e-mail directly from my maildir > folders, or do I need to be running something like Dovecot, Cyrus, or > Courier as well? Nginx can only proxy. You'll need a POP3 server. Cliffby androo - Nginx Mailing List - English
Can nginx act as a pop3 server or only as a pop3 *proxy* server? In other words, can I use it to fetch e-mail directly from my maildir folders, or do I need to be running something like Dovecot, Cyrus, or Courier as well?by androo - Nginx Mailing List - English
Brilliant! Many thanks. --Androo Since version 0.7.31 use may use fastcgi_split_path_info: location ~ ^(.+\.php)(.*)$ { fastcgi_split_path_info ^(.+\.php)(.*)$; fastcgi_param SCRIPT_FILENAME /path/to/php$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; ... } > Posted at Nginx Forum: > http:/by androo - Nginx Mailing List - English
First of all, thank you for Nginx. It is a breath of fresh air after Apache. And though it has taken some getting used to, I've discovered that I like the config file syntax better in Nginx. Second, there are three server variables whose values are not the same under Nginx as under Apache: PATH_INFO, PATH_TRANSLATED, and SCRIPT_NAME. Obviously this makes trouble when trying to use applicationsby androo - Nginx Mailing List - English