hosts

No mapping found for [/crls/secureca.crl]

怎甘沉沦 提交于 2019-12-03 08:31:54
This is what appears many times in console of Jetty local webserver when testing J2EE Spring app. 2012-05-03 14:28:14,716 WARN [org.springframework.web.servlet.PageNotFound] - <No mapping found for HTTP request with URI [/crls/secureca.crl] in DispatcherServlet with name 'DefaultServlet'> I've setup my localhost (OSX) like this: sudo ipfw add 100 fwd 127.0.0.1,8080 tcp from any to any 80 in To forward all requests to localhost/127.0.0.1 from :80 to :8080 Does anybody know if this is severe bug/warning and how to get rid of it ? My mistake, I got (and only god knows why) in /private/etc/hosts

基于CentOS6.6配置Apache虚拟主机(多IP、多主机、多端口)

拟墨画扇 提交于 2019-12-03 07:26:38
Apache配置虚拟主机(多IP、多主机、多端口) 本文以CentOS6.6 作服务端,Win7作客户端。参考网上诸多文档加以实验,现总结如下。如有问题,有意还请指出。谢谢! [ 一 基于多IP地址 ] 实验:Server=CentOS6.6,Client=win7。我以root权限直接操作了。 1.安装和起服务httpd(即:Apache) [root@localhost ~]# yum install httpd -y <==yum安装httpd [root@localhost ~]# /etc/init.d/httpd start <==临时启动服务,或# service httpd start 2.关闭iptables防火墙 [root@localhost ~]# /etc/init.d/iptables stop <==临时关闭。或永久关闭chkconfig iptables off 3.创建访问路径文件夹和主页文件 [root@localhost /]# makdir /var/www/test1 <==创建自定义文件夹"test1" [root@localhost /]# echo test1>/var/www/test1/1.html <==创建自定义主页"1.html" [root@localhost /]# makdir /var/www/test2 [root

sed: replace ip in hosts file, using hostname as pattern

本小妞迷上赌 提交于 2019-12-03 05:59:22
I'm learning about sed but it is very difficult to me understand it. I have adsl with dynamic ip so and i want to put current ip on hosts file. This following script just tells me the current wan ip address and no more: IP=$(dig +short myip.opendns.com @resolver1.opendns.com) echo $IP The result: 192.42.7.73 So, i have a line on hosts file with the old ip address: 190.42.44.22 peep.strudel.com and i want to update host file like this: 192.42.7.73 peep.strudel.com How can i do it? I think i can use the hostname as pattern... The reason of doing this is because my server is a client of my router

How to edit hosts file via CMD? [closed]

风流意气都作罢 提交于 2019-12-03 04:57:50
Hello I'd like to block some websites directly from the command prompt. echo like this: 0.0.0.0 websitename.com How can I do this? (OS: Windows 7) echo 0.0.0.0 websitename.com >> %WINDIR%\System32\Drivers\Etc\Hosts the >> appends the output of echo to the file. Note that there are two reasons this might not work like you want it to. You may be aware of these, but I mention them just in case. First, it won't affect a web browser, for example, that already has the current, "real" IP address resolved. So, it won't always take effect right away. Second, it requires you to add an entry for every

Using --add-host or extra_hosts with docker-compose

丶灬走出姿态 提交于 2019-12-03 04:52:40
问题 I am using docker-compose to run a test environment, that consists of about 5 different containers. The inter-container links and the shared volumes (volumes-from) works wonderfully. I also expose some ports up to the host machine, which works nicely. What I am missing is a way to link some of my real servers into this environment, without hardcoding ip address. With docker run , you could use --add-host to add another line in your /etc/hosts file. Is there any way to do something similar

Bugku-域名解析

荒凉一梦 提交于 2019-12-03 02:05:16
做题之前了解一下域名解析,域名是为了方便记忆而专门建立的一套地址转换系统,要访问一台互联网上的服务器,最终还必须通过IP地址来实现,域名解析就是将域名重新转换为IP地址的过程。一个域名对应一个IP地址,一个IP地址可以对应多个域名;所以多个域名可以同时被解析到一个IP地址。域名解析需要由专门的域名解析服务器(DNS)来完成。 题目告诉我们只要把flag.baidu.com解析到123.206.87.240这个地址便可以拿到flag, 在我们自己电脑的C盘里面有个hosts文件。。hosts文件的作用就是将一些常用的网址域名与其对应的IP地址建立一个关联“数据库”,当用户在浏览器中输入一个需要登录的网址时,系统会首先自动从Hosts文件中寻找对应的IP地址,一旦找到,系统会立即打开对应网页,如果没有找到,则系统会再将网址提交DNS域名解析服务器进行IP地址的解析.访问路径 c:\windows\system32\drivers\etc\hosts 在里面加一行再去访问flag.baidu.com便可以拿到flag. 来源: https://www.cnblogs.com/HelloCTF/p/11770614.html

解决博文图片不显示的问题

允我心安 提交于 2019-12-03 02:00:52
目录 问题 问题根源 解决步骤 找到URL 获取IP地址 修改hosts 问题 最近写博文的时候发现图片都不显示了: 博文用到的图片一直是用github做图床,果然github里的图片也不显示了: 报错: Failed to load resource: net::ERR_CERT_COMMON_NAME_INVALID 这样很影响博文内容的理解啊,在网上搜了一下找到解决方案,记录一下。 以下解放方法参照博主 Antrn 的这篇博文: 【最新】解决github图片不显示的问题 。 问题根源 博主 john-zeng 这样解释道: 实际上,可以认为,ERR_CERT_COMMON_NAME_INVALID就是用一个错误的域名访问了某个节点的https资源。导致这个错误的原因,基本是:   ① dns污染   ② host设置错误   ③ 官方更新了dns,但是dns缓存没有被更新,导致错误解析。 解决步骤 主要思路就是使用本地 hosts 文件对网站进行域名解析,一般的DNS问题都可以通过修改hosts文件来解决,github的CDN域名被污染问题也不例外,同样可以通过修改hosts文件解决,将域名解析直接指向IP地址来绕过DNS的解析,以此解决污染问题。 找到URL 打开github任意带有挂掉图片的网页,使用 元素选择器 (Ctrl+Shift+C)放在显示不了的图片上

openwrt修改hosts

匿名 (未验证) 提交于 2019-12-03 00:42:01
不同于标准linux主机,openwrt使用dnsmasq来管理dns和dhcp。 修改dnsmasq的配置文件 vi /etc/config/dhcp 在config dnsmasq这组下面添加 list addnhosts ‘/etc/myhosts‘ 这样就可以把/etc/myhosts文件当成host文件来试用了,修改完需要service restart dnsmasq 原文:https://www.cnblogs.com/sherlock-merlin/p/9346791.html

IntelliJ IDEA2017.3/2018 激活

匿名 (未验证) 提交于 2019-12-03 00:41:02
最新的IDEA激活方式 使用网上传统的那种输入网址的方式激活不了,使用http://idea.lanyus.com/这个网站提供的工具进行 1、进入hosts文件中:C:\Windows\System32\drivers\etc\hosts 2、将“ 0.0.0.0 account.jetbrains.com”添加到hosts文件中 注意:添加只有重新打开hosts文件进行确认之后在进行下一步操作。 修改成功后如图所示: 注:将这条数据加入之后会提示保存,然后确认之后,重新打开hosts文件确认是否添加成功,有时候会提示确认两次。 3、 点击获得注册码,然后将注册码复制,粘贴到IDEA中 文章来源: IntelliJ IDEA2017.3/2018 激活