localhost

Using Domain name instead of localhost in with https in xampp

早过忘川 提交于 2019-12-02 16:46:06
My question may be stupid, But honestly I searched a lot and got success but not complete. I use xampp with windows 8. My host file looks as follows. 127.0.0.1 localhost 127.0.0.1 www.mysite.com My httpd-vhosts.config looks as follows. NameVirtualHost 127.0.0.1 <VirtualHost 127.0.0.1> DocumentRoot "C:/xampp/htdocs" ServerName localhost </VirtualHost> <VirtualHost 127.0.0.1> ServerName www.mysite.com ServerAlias mysite.com DocumentRoot "C:/xampp/htdocs/mysite" </VirtualHost> This works perfect for http. But I have enabled ssl. When I type http://localhost or https://localhost , Both work fine.

IdentityService4学习笔记

十年热恋 提交于 2019-12-02 16:18:00
IdentityService4简介 一套为应用程序构建身份认证和访问控制解决方案/框架,包括单点登录,身份认证,授权和API访问控制。 前文 今天介绍ClientCredentials认证类型,适用于服务器与服务器之间身份验证,一般用于定时程序。 开始 我们需要的东西: Api:负责提供数据,被保护进程 IdentityService4:负责提供身份认证等功能 客户端:负责在认证之后调用Api执行某些操作 IdentityService4初始化 IdentityService4(简称is4)有两种初始化方式: 1 使用命令行安装is4模板 1)安装模板命令:dotnet new -i IdentityServer4.Templates 2)安装完成之后执行dotnet new命令如下图所示多出了一些模板 3)使用dotnet cli创建一个is4empty模板,is4项目初始化完成 注:也可以使用其他已经配置好的模板 2 创建空.net core项目进行配置 1) 选择好要创建的文件夹之后选择创建空模板: 2) 使用nuget添加is4的包 install-package IdentityService4 注:is4会顺带装上serilog 3) 创建一个Config.cs文件,文件内包含三个静态字段 public static IEnumerable

ngrok command not found

社会主义新天地 提交于 2019-12-02 16:09:17
I'm trying to install ngrok (which I've been using for a while on Windows with no issues) on my 1 week old yosemite and these are the steps I've followed so far. Downloaded ngrok from here https://ngrok.com/download . Unziped the file and copied the Unix Executable File into application. Now from what I understand I just need to open the terminal, move inside the application folder and write ngrok http 80 . The result of this is "command not found". I've even signed up at the ngrok website and run from terminal the command ./ngrok authtoken "blablabla" and the result is "No such file or

ERROR 1130: Host &apos;192.168.1.3&apos; is not allowed to c

若如初见. 提交于 2019-12-02 15:53:08
当使用Mysql帐号远程登陆的时候,出现类似如下错误: ERROR 1130: Host '192.168.1.3' is not allowed to connect to this MySQL 解决办法: 1. 改表法( 可能是你的帐号不允许从远程登陆,只能在localhost。这个时候只要在localhost的那台电脑,登入mysql后,更改 "mysql" 数据库里的 "user" 表里的 "host" 项,从"localhost"改称"%") c:/mysql/mysql server 5.1>mysql -u root -p 输入相应密码 mysql>use mysql; mysql>show tables; (确认一下表user是否存在) mysql>update user set host='%' where user='root'; mysql>quit 退出mysql c:/mysql/mysql server 5.1>net stop mysql c:/mysql/mysql server 5.1>net start mysql 现在远程连接这部mysql服务器就行了 c:/mysql/mysql server 5.1>mysql -h 192.168.1.3 -u root -p 2. 授权法 例如

Exceptionless安装的一些坑

坚强是说给别人听的谎言 提交于 2019-12-02 15:44:20
零.参考网站: https://www.cnblogs.com/zgshi/p/9152196.html 博客园上介绍。基本上介绍了如何安装和放到IIS上面。 https://www.cnblogs.com/xiaobai123/p/9238415.html ExceptionLess上面的扩展一系列的方法 一. 安装注意点 1. 在第一次按照文档中安装的时候,其实执行Start.bat命令会报错然后用第一个链接中的方法就能解决。Start.bat里面就是执行了Start-ElasticSearch.ps1和Start-Website.ps1的命令。会下载elasticsearch-5.5.2 和kibana。前者就是Exceptionless存放数据的。 2. 在将网站安装到IIS上面的时候,要在服务器在启动elasticsearch-service.bat。通过命令行cmd在当前目录。执行elasticsearch-service.bat install 和elasticsearch-service.bat start。在service.msc(服务)中查看服务是否成功运行。效果如下图。 当运行成功便可以直接访问 http://localhost:9200/ 默认端口9200。IIS便可以正常访问。 二. 在Exceptionless中添加项目 1. 添加项目

springboot项目浏览器报错:Whitelabel Error Page --There was an unexpected error (type=Not Found, status=404)

左心房为你撑大大i 提交于 2019-12-02 15:39:28
页面访问http://localhost:8080/hello 1.检查url是否正确 下面的是 :http://localhost:8080/hello 下面的是 : http://localhost:8080/111/hello 上面的路径对我没用,检查pom.xml ,添加thymeleaf依赖 成功访问。 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency> 来源: https://www.cnblogs.com/lifan12589/p/11751992.html

(九)DVWA之SQL Injection--SQLMap&Fiddler测试(High)

爱⌒轻易说出口 提交于 2019-12-02 15:31:29
一、测试需求分析 测试对象 :DVWA漏洞系统--SQL Injection模块--ID提交功能 防御等级 :High 测试目标 :判断被测模块是否存在SQL注入漏洞,漏洞是否可利用,若可以则检测出对应的数据库数据 测试方式 :手工+Fiddler+ SQLMap工具 url: http://localhost:8001/dvwa/vulnerabilities/sqli/ 被测模块(防御:High) session-input.php代码 <?php define( 'DVWA_WEB_PAGE_TO_ROOT', '../../' ); require_once DVWA_WEB_PAGE_TO_ROOT . 'dvwa/includes/dvwaPage.inc.php'; dvwaPageStartup( array( 'authenticated', 'phpids' ) ); $page = dvwaPageNewGrab(); $page[ 'title' ] = 'SQL Injection Session Input' . $page[ 'title_separator' ].$page[ 'title' ]; if( isset( $_POST[ 'id' ] ) ) { $_SESSION[ 'id' ] = $_POST[ 'id' ]; //$page[

webpack---less 热更新 使用

时间秒杀一切 提交于 2019-12-02 15:21:45
  最近尝试用less写界面,webpack进行打包,然后发现每次修改less时都需要重新执行webpack打包一下,于是就想到了webpack热更新这个功能。 一、使用less   less是一门css预处理语言,它是拓展了css,增加了变量,Mixin等等。使用less需要安装less服务,less-loader用来打包时用,想要将less正确解析成css当然还需要style-loader和css-loader。loader是webpack重要的功能之一,通过使用不同的loader,webpack可以使用外部脚本或工具处理不同格式类型的文件,如通过less-loader处".less"文件。 首先安装: npm install less --save-dev npm install style-loader css-loader less-loader --save-dev webpack.config.js配置: module: { rules: [{ test: /\.less$/ , use: [ 'style-loader', 'css-loader', 'less-loader' ] }] } 然后将.less文件加载到入口文件里,如在入口文件里import '../less/topHead.less';这样就可以执行webpack把.less文件进行打包了。 二

Mysql 创建用户授权

时光怂恿深爱的人放手 提交于 2019-12-02 15:17:48
转: https://www.cnblogs.com/wuyunblog/p/9109269.html 一:创建用户 1.新建用户 --创建了一个名为:test 密码为:1234 的用户 create user 'test'@'localhost' identified by '1234'; 注意: 此处的"localhost",是指该用户只能在本地登录,不能在另外一台机器上远程登录。如果想远程登录的话,将"localhost"改为"%",表示在任何一台电脑上都可以登录。也可以指定某台机器可以远程登录。 2.查询用户 --查询用户 select user,host from mysql.user; 3.删除用户 --删除用户“test” drop user test@localhost ; --若创建的用户允许任何电脑登陆,删除用户如下 drop user test@'%'; 4.更改密码 --方法1,密码实时更新;修改用户“test”的密码为“1122” set password for test =password('1122'); --方法2,需要刷新;修改用户“test”的密码为“1234” update mysql.user set password=password('1234') where user='test' --刷新 flush privileges; 5

avoid local host ID to be edited by customers

断了今生、忘了曾经 提交于 2019-12-02 15:05:31
问题 i have an orderdetails page wherein customers can view their history page. And this is the url: when i change the ID from 13 to lets say 14, it still shows the details on whats inside ID#14. What i want to happen is to have an error when customers try to change the localhost ID. Or to restrict the ID to be edited? Really dont have any idea on what to do. Encryption? By the way here is the orderdetails code behind: (this is in user control) public partial class ucCustomerOrder1 : System.Web.UI