linux中配置虚拟主机
来源:互联网 发布:苹果手机芒果tv没网络 编辑:程序博客网 时间:2024/06/03 23:07
1、上传项目后
修改Application/Runtime权限 chmod -R 777 Runtime
将上传的整个TP项目的文件夹修改权限chmod -R 777 文件夹名;
修改TP配置文件(Application/Common/Conf/config.php),更改数据库连接信息
配置虚拟主机
WINDOWS系统中修改hosts文件
C:\windows\System32\Drivers\etc\hosts
192.168.1.253 www.changgege.com
修改nginx中的配置文件nginx.conf
vim /usr/local/nginx/conf/nginx.conf
添加:
server {
listen 80;
autoindex on;
server_name www.changgege.com;
root /data/changgege;
location / {
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php/$1 last;
break;
}
}
location ~ .+\.php($|/) {
set $script $uri;
set $path_info "/";
if ($uri ~ "^(.+\.php)(/.+)") {
set $script $1;
set $path_info $2;
}
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php?IF_REWRITE=1;
include fastcgi_params;
fastcgi_param PATH_INFO $path_info;
#fastcgi_param SCRIPT_FILENAME $document_root/$script;
fastcgi_param SCRIPT_FILENAME /data/changgege/$script;
fastcgi_param SCRIPT_NAME $script;
}
}
- linux中配置虚拟主机
- linux下配置虚拟主机
- linux lighttpd 配置虚拟主机
- linux lighttpd 配置虚拟主机
- linux 配置虚拟主机
- linux 环境配置虚拟主机
- Tomcat中配置虚拟主机
- Tomcat中配置虚拟主机
- centos7中配置虚拟主机
- Centos7中配置虚拟主机
- linux 下apache 配置虚拟主机
- linux下apache虚拟主机配置
- linux下apache 配置虚拟主机
- Linux虚拟主机配置终极篇
- Linux下Apache虚拟主机配置
- linux下nginx虚拟主机配置
- Linux下Apache虚拟主机配置
- Linux虚拟主机配置(基于域名)
- Apache服务器配置网站伪静态
- Optimizing Latent Dirichlet Allocation with Variational Inference
- Codeforces Round #395 (Div. 2) -- C. Timofey and a tree(并查集+缩点)
- Java中static和final的区别
- shadow
- linux中配置虚拟主机
- learn python the hard way---ex52
- 83. Remove Duplicates from Sorted List
- (五十四)高并发服务器——多路IO转接机制poll模型
- 84. Largest Rectangle in Histogram
- angularjs directive 实例 详解
- 85. Maximal Rectangle
- pms包管理服务分析-PackageManagerService构造函数和包扫描过程
- <Python初学>基本数据list的操作