English 中文(简体)
nginx andcodeigniter (telling a services to put all trafficking through index.php?)
原标题:nginx and codeigniter (telling a server to put all traffic through index.php?)

基本上,我用一刀切使用“如果没有所要求的档案或目录,通过指数提出申请”。

我怎么能以gin子这样做?

这样,如果要求打上风格,它就发挥了作用。 但是,如果尿灯塔拖到软盘上,那么它就应当管理框架。

最佳回答

我这样做的方式是无视某些延期......

“组合”除gif/jpg等外,一切照样。 php

    location ~* .(gif|jpg|jpeg|png|js|css|pdf)$ {
              root   /home/site/public_html;
            expires 365d;

    }

    location / {
        root   /home/site/public_html;
        index  index.php index.html index.htm;
        rewrite ^/(.*) /modify.php?file=$1;
            expires 5m;
    }

你们还可以检验存在——f(尽管我倾向于避免额外静态)档案。 The example bellow Passquest for Disappearance file through to a proxy:

if (!-f $request_filename) {
  break;
  proxy_pass  http://127.0.0.1;
}
问题回答

暂无回答




相关问题
Using SimplePie with CodeIgniter and XAMPP

I am using CodeIgniter 1.7.2 with XAMPP 1.7.2 on a Windows computer. I am trying to make use of SimplePie. I followed all the instructions I could find: a copy of simplepie.inc is in my applications/...

Multiple Sites with common files

I have developed over 50 sites that all use the exact same files other than CSS and IMAGES, I currently duplicate the files each time I create a new site and upload different css and images. What ...

http server validation

I finish a litle http server, writing from scratch. I would like to be sure that my imlementation is conforme to the HTTP specifications. W3C give us tools for HTML/XML conformance, but i see nothing ...

热门标签