欢迎光临IT网Linux学习频道

当前位置: > Linux服务器 > nginx >
  • [nginx] Nginx设置Header头信息 日期:2016-05-12 19:35:07 点击:135 好评:0

    Nginx使用 ngx_headers_more 模块来增加、删除出站、入站的 Header 信息。 ngx_headers_more项目主页 默认该模块没有加入到 Nginx 的源码中,要想使用相关功能需要在编译 Nginx 时加入该模块。 本人服务器中的 Nginx 在编译时没有加入该模块,使用 -V 查看当...

  • [nginx] 源码编译安装Nginx 日期:2016-05-12 15:56:28 点击:176 好评:0

    安装说明 系统环境:CentOS6、CentOS7、Red Hat6、Red Hat7 软件:nginx-1.8.0.tar.gz 其他所需软件:openssl-1.0.2d.tar.gz、pcre-8.37.tar.gz、zlib-1.2.8.tar.gz 安装方式:源码编译安装 安装位置:/usr/local/nginx 下载地址:http://nginx.org/en/downl...

  • [nginx] Laravel的Nginx配置 日期:2016-05-11 02:38:45 点击:176 好评:0

    server { listen 80; server_name tool.lu; root /data/html/tool.lu/public; index index.html index.php; location / { try_files $uri $uri/ /index.php$is_args$query_string; } location ~ \.php$ { try_files $uri =404; fastcgi_pass 127.0.0.1:9000;...

  • [nginx] Nginx中运行PHP框架Laravel的配置文件分享 日期:2016-05-11 02:38:00 点击:135 好评:0

    配置文件改成这样 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 server { listen 80; server_name sub.domain.com; set $root_path /srv/www/default; root $root_path; index index.php index.html inde...

  • [nginx] Nginx运行Laravel的配置 日期:2016-05-11 02:36:37 点击:123 好评:0

    配置文件改成这样 server{ listen80; server_namesub.domain.com; set$root_path/srv/www/default; root$root_path; indexindex.phpindex.htmlindex.htm; try_files$uri$uri/@rewrite; location@rewrite{ rewrite^/(.*)$/index.php?_url=/$1; } location~\.p...

  • [nginx] laravel nginx 配置 日期:2016-05-10 09:59:50 点击:144 好评:0

    server { 02. 03. listen 80; 04. server_name sub.domain.com; 05. set $root_path /var/www/html/application_name/public; 06. root $root_path; 07. 08. index index.php index.html index.htm; 09. 10. try_files $uri $uri/ @rewrite; 11. 12. locatio...

  • [nginx] 安装nginx并配置php环境 日期:2016-05-10 09:56:20 点击:176 好评:0

    环境: Linux ubuntu 3.2.0-23-generic-pae Ubuntu下安装nginx+php+FastCGI 1. 安装nginx 使用命令安装: #sudo apt-get install nginx Nginx的启动和停止: /etc/init.d/nginx start/stop/restart Service nginx start/stop 2. 修改nginx的配置 #vi /etc/ngin...

  • [nginx] Nginx 本机 80 访问正常而同局域网内其他机器无法访问的问 日期:2016-05-08 17:06:14 点击:99 好评:0

    今天遇到奇怪的问题,Nginx 配置和启动正常,uWSGI 配置和启动也正常,本机打开浏览器访问本机 IP:80 正常,但同一个局域网内的其他机器通过 IP:80 访问就提示无法连接。着实困扰了一阵子。 经过排查,发现是有别的服务启动后占用了 80 端口,而本机访问时因...

  • [nginx] nginx反向代理主机,公网访问出现局域网地址问题解决 . 日期:2016-05-08 17:05:15 点击:76 好评:0

    修改proxy主机的nginx配置文件: location / { proxy_pass http://192.168.0.21/; proxy_set_header Host $host; //重置主机头 } 这样可以在转向时将HOST设置为代理的域名,从而避免了再解析域名。 另: proxy_set_header Host $http_host; //重写响应外部访...

  • [nginx] 使用Nginx和iptables做访问权限控制(IP和MAC) 日期:2016-05-08 17:03:34 点击:51 好评:0

    之前配置的服务器,相当于对整个内网都是公开的,而且,除了可以通过80端口的nginx来间接访问各项服务,也可以绕过nginx,直接ip地址加端口访问对应服务,这是不对的啊,所以我们要做一些限制,因为只是对特定的人提供服务,而且局域网IP和MAC都是固定的,所...

  • 首页
  • 上一页
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 下一页
  • 末页
  • 2012009
栏目列表
推荐内容