apache下设置域名多站点访问 当前系统:macOS High Sierra 域名访问配置指定端口后,不同域名只能配置不同的端口 apache配置目录: sudo vim /etc/apache2/httpd.confsudo vim /etc/apache2/extra/httpd-vhosts.conf 具体代码如下(/etc/apache2/extra/httpd-vhosts.conf): Listen <VirtualHost *:> DocumentRoot "/Use…
PhpStorm和WAMP配置调试参数 问题描述: Error. Interpreter is not specified or invalid. Press “Fix” to edit your project configuration. 解决方法: 打开File->Settings 浏览到Languages & Frameworks->PHP Include Path添加D:\WAMP64\apps\phpsysinfo3.2.3\sample\distrotest\Pear 点…
System.Web.Http.Cors配置跨域访问的两种方式 使用System.Web.Http.Cors配置跨域访问,众多大神已经发布了很多文章,我就不在详细描述了,作为小白我只说一下自己的使用心得.在webapi中使用System.Web.Http.Cors配置跨域信息可以有两种方式. 一种是在App_Start.WebApiConfig.cs的Register中配置如下代码,这种方式将在所有的webapi Controller里面起作用. using System; using Sys…