vps没有安装配置apache。有php和mysql..怎么ci做的项目用不了...
vps没有安装配置apache。有php和mysql..怎么ci做的项目用不了啊。为什么啊。。其实项目在我本机可以,很正常。在别人的空间都可以啊,为什么就在我的vps不行啊。
web服务器都没有,怎么跑? 呵呵,目录权限问题吧。根目录的权限要和上级目录一致 我只能表示很不理解 VPS为什么会跑不了CI呢 LZ?
难道没有web服务器;P web服务器都没有怎么玩? 哈哈 都有vps了 还不会建apache 我勒个去 可能是nginx吧, 配置有点不同, 所以跑不起来, vhost要写好 =-= 发表于 2012-12-1 03:19 static/image/common/back.gif
可能是nginx吧, 配置有点不同, 所以跑不起来, vhost要写好
nginx的pathinfo 如何配置?
使用lnmp安装之后 默认不支持pathinfo,如何配置? wanganlin21 发表于 2012-12-3 14:19 static/image/common/back.gif
nginx的pathinfo 如何配置?
使用lnmp安装之后 默认不支持pathinfo,如何配置? ...
这是我用的nginx vhost
server {
server_name your.domain.com;
root /your/webroot;
index index.html index.php index.htm;
location ~* \.(ico|css|js|gif|jpe?g|png)(\?+)?$ {
expires max;
log_not_found off;
}
location / {
try_files $uri $uri/ /index.php;
}
location ~* \.php$ {
fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_index index.php;
fastcgi_split_path_info ^(.+\.php)(.*)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
页:
[1]