SSI

Igor Sysoev is at rambler-co.ru
Sat Jul 1 17:31:20 MSD 2006


On Sat, 1 Jul 2006 owner-nginx-ru at mail.sysoev.ru wrote:

> Подскажите пожалуйста почему не работает SSI при следующей конфигурации

> worker_processes  1;
>
> error_log  logs/error.log;
>
> pid        /var/run/nginx.pid;
>
> events {
>     worker_connections  1024;
> }
>
> http {
>     include       conf/mime.types;
>     default_type  application/octet-stream;
>
>     log_format  main  '$remote_addr - $remote_user [$time_local] $status '
>                       '"$request" $body_bytes_sent "$http_referer" '
>                       '"$http_user_agent" "http_x_forwarded_for"';
>
>     sendfile            on;
>     tcp_nopush          on;
>
>     keepalive_timeout   30;
>     tcp_nodelay         on;
>
>
>     server {
>         listen 8080;
>         server_name  foruminvest.com.ua www.foruminvest.com.ua;
>         access_log  logs/access/foruminvest.com.ua main;
>         error_log logs/error/foruminvest.com.ua info;
>
>         location / {
>             root   /home/foruminvest.com.ua/data/public_html;
>             index  index.php index.cgi index.html index.htm;
>
>             proxy_set_header   Host             $host;
>             proxy_set_header   X-Real-IP        $remote_addr;
>             proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
>
>             if (!-f $request_filename) {
>                 proxy_pass  http://127.0.0.1;
>             }
>             if (-f $request_filename) {
>                 access_log   off;
>                 expires      30d;
>             }
>         }
>         location ~ \.(shtml|html)$ {
>             ssi  on;

               root   /home/foruminvest.com.ua/data/public_html;

>         }
>         location ~ \.(cgi|php)$ {
>             proxy_pass   http://127.0.0.1;
>             proxy_set_header   Host             $host;
>             proxy_set_header   X-Real-IP        $remote_addr;
>             proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
>         }
>     }
> }
>
> 200 http://foruminvest.com.ua/about.html (apache)
> 404 http://foruminvest.com.ua:8080/about.html (nginx)


Игорь Сысоев
http://sysoev.ru





More information about the nginx-ru mailing list