通过禅道官网看了伪静态的介绍,又看了网上很多值得参考的文章,最后加上自己的分析终于搞定禅道的伪静态。禅知给出的具体配置如下:
- location /
- {
- try_files $uri $uri/ /index.php?$args;
- }
- location ~ \.php$
- {
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_param PATH_INFO $request_uri;
- include modules-enabled/fastcgi.conf;
- }
但是,我用了这套代码,发现403错误,检查了下代码发现,前面没有定义index.php,但是不知道为什么(还是懂得少了),fastcgi_index index.php是定义的,不起作用还是咋的,回头有时间再研究,我修改了代码如下:
12312adfas大放大
666真抠门