Nginx网站上线流程
2018-01-15 14:57
204 查看
1.这里的网站是Thinkphp3.2.3开发的 url_model 设置为 2
2.将网站文件和数据库上传。
3.修改nginx.conf
2.将网站文件和数据库上传。
3.修改nginx.conf
server { listen 80; #listen [::]:80; server_name www.cxjp.com cxjp.com; index index.html index.htm index.php default.html default.htm default.php; root /home/wwwroot/cxjp;
#error_page 404 /404.html; include enable-php.conf; location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ { expires 30d; } location ~ .*\.(js|css)?$ { expires 12h; } location / { if (!-e $request_filename){ rewrite ^(.*)$ /index.php?s=$1 last; break; } } location ~ \.php($|/) { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_split_path_info ^(.+\.php)(.*)$; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } location ~ /\. { deny all; } access_log /home/wwwlogs/www.cxjp.com.log; }
相关文章推荐
- 阿里云网站上线全套流程
- 网站的域名申请和备案, 网站开发,上线,维护 包括那些工作流程
- 网站上线(非开发)流程
- 从网站域名到网站上线全流程问题解决方案
- Octopus系列之配置网站上线流程
- ECS centos6.8系统下从nginx安装到简单网站上线配置操作的完整记录
- 部署社区网站,搭建SVN、nginx、PHP,部署MFS并挂载,发布上线
- IOS在自己网站发布APP(企业版$299上线流程)
- 网站上线详细流程
- Ubuntu上配置nginx+php+fastcgi的流程
- ffmpeg+nginx+rtmp+web实现视频直播网站
- nginx源码分析—启动流程
- 网站失去响应 nginx服务启动失败
- Django开发个人博客网站——25、服务器centos 7 安装nginx
- iOS之APP上线 流程
- 搭建 Nginx 图片服务器(前台到后台完整流程及源代码)
- Nginx反爬虫攻略:禁止某些User Agent抓取网站
- Erdaicms旅游网站程序微信和手机端分销系统正式上线发布啦
- 网站部署nginx--uwsgi
- 百度“认证”上线,打造权威网站