Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name whatever.com;
- # static media
- location ^~ /media/ {
- autoindex on;
- root /var/www/proj;
- }
- location ~* ^.+\.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js|mov) {
- access_log off; # po co mi logi obrazków :)
- expires 30d;
- }
- location / {
- # host and port to fastcgi server
- fastcgi_pass 127.0.0.1:8080;
- fastcgi_param SERVER_NAME $server_name;
- fastcgi_param SERVER_PORT $server_port;
- fastcgi_param SERVER_PROTOCOL $server_protocol;
- fastcgi_param PATH_INFO $fastcgi_script_name;
- fastcgi_param REQUEST_METHOD $request_method;
- fastcgi_param QUERY_STRING $query_string;
- fastcgi_param CONTENT_TYPE $content_type;
- fastcgi_param CONTENT_LENGTH $content_length;
- fastcgi_pass_header Authorization;
- fastcgi_intercept_errors off;
- }
- access_log /var/www/proj/log/access.log;
- error_log /var/www/proj/log/error.log;
- }
Add Comment
Please, Sign In to add comment