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

有没有网站是免费做店招图片的南京网站群建设公司

有没有网站是免费做店招图片的,南京网站群建设公司,jsp网站开发教学视频教程,郑州网站推广nginx针对某个url限制ip访问#xff0c;常用于后台访问限制 假如我的站点后台地址为#xff1a; http://www.abc.net/admin.php 那么我想限制只有个别ip可以访问后台#xff0c;那么需要在配置文件中增加#xff1a;location ~ .*admin.* {allow 1.1.1.1;allow 12.12.12.0/…nginx针对某个url限制ip访问常用于后台访问限制 假如我的站点后台地址为 http://www.abc.net/admin.php 那么我想限制只有个别ip可以访问后台那么需要在配置文件中增加location ~ .*admin.* {allow 1.1.1.1;allow 12.12.12.0/24;deny all;location ~ \.php$ {include fastcgi_params;fastcgi_pass unix:/tmp/php-fcgi.sock;fastcgi_index index.php;fastcgi_param SCRIPT_FILENAME /data/www$fastcgi_script_name;}}需要注意的是在这个location下也得加入php解析相关的配置否则php文件无法解析。       upstream market-api{ server 127.0.0.1:3000; }server {listen 80;listen 443 ssl;server_name btc.btc.com;add_header Access-Control-Allow-Origin *;ssl_certificate /etc/nginx/cert_sql/15.pem;ssl_certificate_key /etc/nginx/cert_sql/15.key;ssl_session_timeout 5m;ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;ssl_protocols TLSv1 TLSv1.1 TLSv1.2;ssl_prefer_server_ciphers on;#root /var/www/api2;root /var/www/apis;index index.php index.html index.htm;location / {try_files $uri $uri/ 404;}location /apis/{proxy_pass http://market-api;proxy_set_header Host $host;}location /api/ {if ( !-e $request_filename){rewrite ^/(.*)$ /api/web/index.php?s$1 last;}}location ^~ /res/ {alias /data/api/;}include fastcgi-php.conf; }     location ~ .*index.php* {allow 12.12.12.0/24;deny all;location ~ \.php$ {include fastcgi_params;fastcgi_intercept_errors on;fastcgi_pass unix:/var/run/php/php5.6-fpm.sock;fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;}}   Nginx配置location限制IP访问策略 1.配置如下 server {listen 80;server_name localhost;large_client_header_buffers 4 16k;client_max_body_size 300m;client_body_buffer_size 128k;proxy_connect_timeout 600;proxy_read_timeout 600;proxy_send_timeout 600;proxy_buffer_size 64k;proxy_buffers 4 32k;proxy_busy_buffers_size 64k;proxy_temp_file_write_size 64k;location / {root html;index index.html index.htm;}location /project {allow 220.178.25.22;allow 172.2.2.0/24;allow 192.2.2.0/24;deny all;proxy_pass http://172.2.2.20:8080/project/;proxy_set_header Host $host:$server_port;proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;client_max_body_size 10m;}error_page 500 502 503 504 /50x.html;location /50x.html {root html;}}       2.配置说明   以上配置的作用是允许IP为220.178.25.22以及172和192网段的机器可以访问这个location地址其他IP的客户端访问均是403。 其中24是指子网掩码为255.255.255.0。 3.对照表(子网掩码/CIDR值) 255.0.0.0/8 255.128.0./9 255.192.0./10 255.224.0./11 255.240.0./12 255.248.0./13 255.252.0./14 255.254.0./15 255.255.0./16 255.255.128/17 255.255.192/18 255.255.224/19 255.255.240/20 255.255.248/21 255.255.252/22 255.255.254/23 255.255.255/24 255.255.255.128/25 255.255.255.192/26 255.255.255.224/27 255.255.255.240/28 255.255.255.248/29 255.255.255.252/30  转载于:https://www.cnblogs.com/flying1819/articles/9162332.html
http://www.yutouwan.com/news/313070/

相关文章:

  • 哪些网站可以做淘宝店招做视频上传可以赚钱的网站
  • 安徽省建设工程造价管理总站网站做app网站制作
  • 专业商城网站设计制作在线建筑设计
  • 可信网站认证有用吗wordpress sql注入
  • 商场网站开发教程网站排名优化服务商
  • 怎么建设国际网站首页中国苏州网
  • 哪个网站可以做危险化学品供求网站打开速度慢优化
  • 开发网站找什么公司吗代理网络服务器
  • 昆明网站设计阿里邮箱 wordpress
  • 网站彩票代理怎么做做外贸在哪个平台比较好
  • 嘉兴建设公司网站网络投票程序
  • 站长之家网站建设制作pc端网站建设哪里有
  • 学校门户网站建设方案重庆活动轨迹公布
  • 做家纺的网站营销网络营销
  • 做博客网站需要工具吗公司管理信息系统
  • 连云港百度推广网站建设营销点子
  • 网站建站步骤企业seo网站推广公司
  • 开发者门户网站是什么意思设计手机网站页面尺寸大小
  • 大学生网站开发比赛桂林市自来水公司网站
  • 专业做网站官网今天重庆新闻头条
  • 荥阳网站建设公司建网页的软件
  • 网站规划设计的一般流程官网站站
  • 开封市住房和城乡建设网站wordpress ftp服务器
  • 北京建设网站哪里好建设部网站监理工程师查询
  • asp sqlite网站空间网站建设需要什么技能
  • 重庆市住房和城乡建设厅网站首页wordpress插件找回
  • 适合做公司网站的cms做网站用什么牌子电脑
  • 中国建设银行登录入口绍兴网站推广优化
  • 专门做封面的网站青岛网站建设eoe
  • 网站能不能自己做如何建立自己的云服务器