当前位置: 首页 > news >正文

济南网站制作哪家最好centos部署wordpress

济南网站制作哪家最好,centos部署wordpress,wordpress 4.4.1 中文,在微信上怎么开店【README】 请求nginx静态资源报403#xff1b; 【1】原因 静态资源防止在某个家目录下#xff0c;如 /root 目录下 【2】 解决方法1 nginx.conf 文件没有指定用户 # user nobody 修改为 user root; # 设置为root用户 #xff1b; 【例子】 user root; #使用r…【README】 请求nginx静态资源报403 【1】原因 静态资源防止在某个家目录下如 /root 目录下 【2】 解决方法1 nginx.conf 文件没有指定用户  # user nobody 修改为 user  root;  # 设置为root用户 【例子】 user root; #使用root用户访问 worker_processes 1;error_log logs/error.log; error_log logs/error.log notice; error_log logs/error.log info;#pid logs/nginx.pid;events {worker_connections 1024; }http {# load balance config upstream myserver {# ip_hash; # fair; server 192.168.163.201:8080 weight10;server 192.168.163.204:8080 weight50;} include mime.types;default_type application/octet-stream;log_format main $remote_addr - $remote_user [$time_local] $request $status $body_bytes_sent $http_referer $http_user_agent $http_x_forwarded_for;access_log logs/access.log main;sendfile on;#tcp_nopush on;#keepalive_timeout 0;keepalive_timeout 65;#gzip on;server {listen 80;server_name 192.168.163.204;error_page 500 502 503 504 /50x.html;location /50x.html {root html;}location / {proxy_pass http://myserver; root html;index index.html index.htm;}location /test01 {proxy_pass http://myserver/test01/;}location /test02 {proxy_pass http://myserver/test02/;}location /www/{root /root/software/nginx/data; #root家目录下的静态资源index index.html index.htm;}location /image/ {root /root/software/nginx/data;autoindex on;}}}访问效果 【3】解决方法2 把nginx静态资源放置在其他地方 如  /home/nginx下并将其权限设置为777 【例子】 静态资源目录结构如下 [rootlocalhost data]# pwd /home/nginx/data [rootlocalhost data]# tree . ├── image2 │   └── home.png └── www2└── home.html2 directories, 2 files [rootlocalhost data]# ll total 0 drwxr-xr-x. 2 root root 22 Aug 7 20:07 image2 drwxr-xr-x. 2 root root 23 Aug 7 20:07 www2 [rootlocalhost data]# cd .. [rootlocalhost nginx]# ll total 0 drwxrwxrwx. 4 root root 32 Aug 7 20:22 data #777 nginx配置 #user nobody; # 不使用任何用户 worker_processes 1;error_log logs/error.log; error_log logs/error.log notice; error_log logs/error.log info;#pid logs/nginx.pid;events {worker_connections 1024; }http {# load balance config upstream myserver {# ip_hash; # fair; server 192.168.163.201:8080 weight10;server 192.168.163.204:8080 weight50;} include mime.types;default_type application/octet-stream;log_format main $remote_addr - $remote_user [$time_local] $request $status $body_bytes_sent $http_referer $http_user_agent $http_x_forwarded_for;access_log logs/access.log main;sendfile on;#tcp_nopush on;#keepalive_timeout 0;keepalive_timeout 65;#gzip on;server {listen 80;server_name 192.168.163.204;error_page 500 502 503 504 /50x.html;location /50x.html {root html;}location / {proxy_pass http://myserver; root html;index index.html index.htm;}location /test01 {proxy_pass http://myserver/test01/;}location /test02 {proxy_pass http://myserver/test02/;}location /www/{root /root/software/nginx/data;index index.html index.htm;}location /image/ {root /root/software/nginx/data;autoindex on;}location /www2/{root /home/nginx/data/; # static resource located in home dirindex index.html index.htm; }location /image2/ { # static resource located in home dir root /home/nginx/data/;autoindex on;}}}访问效果
http://www.sadfv.cn/news/206329/

相关文章:

  • 西安高端网站建设哪家好山西集团网站建设
  • 做个游戏网站多少钱网站seo平台
  • 傻瓜建网站newedge wordpress
  • 十大房产网站排行榜网页设计图片素材小插件
  • 行业协会网站建设方案游戏优化大师有用吗
  • 投资20万做网站好吗创建网站服务器地址
  • 北京公司网站设计电话肇庆 网站建设公司有哪些
  • 6黄页网站建设用ps做商城网站好做吗
  • 怎样做免费网站推广重庆人居建设集团网站
  • 如何做电影网站狼视听兰州起点网站建设公司
  • 河北seo网站优化公司如何做好企业网站建设
  • 网站建设人员组成wordpress 设置页面
  • 重庆平台网站推广加强网站政务服务建设
  • 网站手机客户端如何开发网站建设一般分为几个步骤
  • wordpress网站怎么进去做网站找不到客户
  • 广州seo网站推广优化玄武建设局网站
  • 100元网站建设wordpress the7 建站
  • 湘潭企业网站建设 磐石网络wordpress顶部悬浮
  • 大屏网页设计网站如何建立网站详细流程
  • 如何弄自己的网站邯郸建设网站
  • 网站建设需求流程图wordpress整站搬家教程
  • 网站设计建设方案查询关键词
  • 唐兴数码网站同一域名可以做相同网站吗
  • 网站logo怎么做才清晰番禺俊才网官网
  • 无锡易时代网站建设有限公司怎么样上海做网站就用乐云seo十年
  • 上门做网站公司哪家好普陀区建设工程质检网站
  • 济宁网站建设服务阿里巴巴的网络营销方式
  • 外地公司做的网站能备案青岛网站建设‘’
  • 营销网站制作免费咨询点击宝seo
  • 四川省住建设厅网站html5制作网站首页