四虎影视在线影院在线观看,小s货再浪些再咬紧点h,国产精品水嫩水嫩,97精产国品一二三产区
標(biāo)題:
CI框架無法使用PATHINFO模式
[打印本頁(yè)]
作者:
codingOnTheWay
時(shí)間:
2013-1-9 14:09
標(biāo)題:
CI框架無法使用PATHINFO模式
大家好,我在CentOS.6.3上跑的CI框架,用的是LANMP的集成開發(fā)環(huán)境,其中使用的是Nginx做80端口的管理,Apache做8080端口的管理,但是在遇到諸如http://localhost/CI/index.php/hello/index這樣的URL時(shí)就會(huì)顯示404頁(yè)面,也就是說當(dāng)前的設(shè)置不支持PATHINFO模式的URL訪問,剛遇到的這個(gè)問題在網(wǎng)上看了不少資料,都不能實(shí)際解決問題,特來WD論壇來求助,希望有類似的經(jīng)歷的同志指點(diǎn)一些迷津
。急!急!急!
作者:
admin
時(shí)間:
2013-1-9 20:13
支持PATHINFO,配置下apache就可以
作者:
codingOnTheWay
時(shí)間:
2013-1-10 18:14
為什么NGINX不支持PATHINFO,要去設(shè)置的額是apache呢?設(shè)置apache又怎么設(shè)置呢
作者:
admin
時(shí)間:
2013-1-10 21:26
nginx也支持,都是要設(shè)置一下就可以,具體GG
作者:
codingOnTheWay
時(shí)間:
2013-1-10 22:21
追問:我重裝過Wdlinux目錄下有l(wèi)anmp和wdlinux兩個(gè)文件,里面都有Ngix.conf文件,請(qǐng)問配置哪一個(gè)?
作者:
admin
時(shí)間:
2013-1-11 09:16
wdlinux
作者:
codingOnTheWay
時(shí)間:
2013-1-11 09:50
我在GG和百度上都查了,但我的wdlinux下面有兩個(gè)文件:nginx && nginx-1.0.12,把里面的nginx.conf文件都加上了下面的代碼:結(jié)果還是不行,請(qǐng)問這是為什么?
server {
listen 80;
server_name localhost;
index index.html index.htm index.php;
root /xampp/htdocs;
autoindex on;
location ~ \.php($|/) {
root /www/web/default/;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME E:/www$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
include fastcgi_params;
}
log_format access '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" $http_x_forwarded_for';
access_log /APMServ5.2.6/nginx/logs/access.log access;
}
}
歡迎光臨 WDlinux官方論壇 (http://cd-genova.com/bbs/)
Powered by Discuz! 7.2