

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
26 messages in ru.sysoev.nginxRe: how to rewrite this: apache to nginx| From | Sent On | Attachments |
|---|---|---|
| Robert Gabriel | Aug 29, 2008 1:54 am | |
| Igor Sysoev | Aug 29, 2008 2:00 am | |
| Robert Gabriel | Aug 29, 2008 2:12 am | |
| Igor Sysoev | Aug 29, 2008 2:16 am | |
| Robert Gabriel | Aug 29, 2008 2:27 am | |
| Igor Sysoev | Aug 29, 2008 2:31 am | |
| Robert Gabriel | Aug 29, 2008 2:41 am | |
| Igor Sysoev | Aug 29, 2008 2:59 am | |
| Robert Gabriel | Aug 29, 2008 3:45 am | |
| Igor Sysoev | Aug 29, 2008 3:59 am | |
| Robert Gabriel | Aug 29, 2008 4:10 am | |
| Igor Sysoev | Aug 29, 2008 4:29 am | |
| Robert Gabriel | Aug 29, 2008 4:45 am | |
| Sergej Kandyla | Aug 29, 2008 4:55 am | |
| Igor Sysoev | Aug 29, 2008 5:01 am | |
| Robert Gabriel | Aug 29, 2008 5:06 am | |
| Robert Gabriel | Aug 29, 2008 5:16 am | |
| Robert Gabriel | Aug 29, 2008 5:18 am | |
| Igor Sysoev | Aug 29, 2008 6:25 am | |
| Robert Gabriel | Aug 29, 2008 7:18 am | |
| Igor Sysoev | Aug 29, 2008 7:24 am | |
| Robert Gabriel | Aug 29, 2008 12:39 pm | |
| Robert Gabriel | Sep 1, 2008 12:59 am | |
| Igor Clark | Sep 1, 2008 2:09 am | |
| Robert Gabriel | Sep 1, 2008 9:35 am | |
| Robert Gabriel | Sep 5, 2008 2:43 am |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | Re: how to rewrite this: apache to nginx | Actions... |
|---|---|---|
| From: | Robert Gabriel (list...@public.gmane.org) | |
| Date: | Aug 29, 2008 2:41:28 am | |
| List: | ru.sysoev.nginx | |
The subdomain config:
server { listen 80; server_name helpdesk.visualserver.org *.helpdesk.visualserver.org;
access_log /var/log/nginx/helpdesk-access_log; error_log /var/log/nginx/helpdesk-error_log;
location / { root /srv/www/helpdesk; index index.php index.html index.htm; error_page 404 = /index.php; }
location ~* ^(.*/)?(\.svn|api|libs|plugins|storage|templates)(/|$) { return 403; }
location ~* \.php$ { fastcgi_pass 127.0.0.1:50000; fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /srv/www/helpdesk$fastcgi_script_name; fastcgi_param QUERY_STRING $query_string; fastcgi_param REQUEST_METHOD $request_method; fastcgi_param CONTENT_TYPE $content_type; fastcgi_param CONTENT_LENGTH $content_length; fastcgi_param REQUEST_URI $request_uri; fastcgi_param DOCUMENT_URI $document_uri; fastcgi_param DOCUMENT_ROOT $document_root; fastcgi_param SERVER_PROTOCOL $server_protocol; fastcgi_param REMOTE_ADDR $remote_addr; fastcgi_param REMOTE_PORT $remote_port; fastcgi_param SERVER_ADDR $server_addr; fastcgi_param SERVER_PORT $server_port; fastcgi_param SERVER_NAME $server_name; # PHP only, required if PHP was built with --enable-force-cgi-redirect fastcgi_param REDIRECT_STATUS 200; }
#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; }
}
nginx config:
user www-data; worker_processes 2;
pid /var/run/nginx.pid; error_log /var/log/nginx/error_log info;
events { worker_connections 1024; use epoll; }
http { include /etc/nginx/mime.types; default_type application/octet-stream; server_tokens off; server_names_hash_bucket_size 128; sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 4; gzip on; gzip_min_length 1100; gzip_comp_level 2; gzip_types text/plain text/html text/css;
include /etc/nginx/sites-enabled/*; include /etc/nginx/sites-users/*; include /etc/nginx/sites-virtual/*; }
So thats about it...
-- Posted via http://www.ruby-forum.com/.







