XAMPP虚拟主机配置,多域名绑定访问本地站点 XAMPP有时候你需要一些顶级域名访问方式来访问你本地的项目也就是虚拟主机配置,这时候就需要配置虚拟主机,给你的目录绑定一个域名,实现多域名绑定访问. 在Mac 下一直使用 MAMP 搭建本地 php 环境,因为其强大的组合配置以及方便的 UI 操作.因为公司的电脑是 Windows的,有时候需要搭建 php 环境来调试一些小东西方便自己工作,因为只是小应用,所以自己搭建本地的 WAMP 环境就没有必要了,网上的 WAMP环境集成包还是很多的,什么…
本地域名配置 1.计算机-->C盘-->Windows-->System32-->drivers-->etc-->hosts 127.0.0.1       localhost//设置你要配置的本地域名   2.计算机-->XAMPP-->apache-->conf-->extra-->httpd-vhosts.conf <VirtualHost *:80>     ServerAdmin localhost     Docum…
重要的事情: 前提: vhost.conf被引入 修改两个文件,文件所在路径,看图片上sublime编辑器,hosts和vhost.conf配置的域名必须一致 参考文档:http://blog.csdn.net/u014173997/article/details/50407586…
首先需要在xampp\apache\conf\extra\httpd-vhost.conf中写入配置的二级域名 <VirtualHost *:8081> // 该网站通过监测8081端口 ServerName blogs.xueshuai.com // 自定义二级域名 DocumentRoot "C:\NewFile\web\Blogs" // 二级域名所指向的路径 <Directory "C:\NewFile\web\Blogs"> Opt…
首先使用notpad++(我用的notpad++,记事本也可以)打开(安装xampp目录下的)apach-->conf-->extra-->httpd-vhosts.conf 在文件的最下面添加如下代码 <VirtualHost *:80> ServerName xueshuai.com //访问的域名 DocumentRoot "E:\WEB-XueShuai\example\**********" //指向的地址 <Directory "…
找到\xampp\apache\conf\httpd.conf配置文件 Access forbidden! You don’t have permission to access the requested directory. There is either no index document or the directory is read-protected. If you think this is a server error, please contact the webmaster…
之前有一篇使用xampp配置虚拟域名,但是不同公司使用的集成环境不同,(xampp是我自己用的,别误解(><) !)这次使用的phpstudy,相比较而言,phpstudy更简单一点 首先下载phpstudy,地址https://pan.baidu.com/s/1UEqpwA_dgUASLWYmCRZJjA,提取码d7b1 安装就不用说了吧,一步步操作 1- 打开phpstudy 设置运行模式为系统服务,依次点击MySQL管理器,选择站点域名管理 2- 配置虚拟域名 网站域名填写需要配置的虚拟…
今天下载了最新的xampp,配置了一个虚拟主机,一直在报错,Access forbidden! Error 403 这很明显是服务器不允许访问文件,但是我的虚拟主机配置如下: DocumentRoot "D:/work/test" ServerName test Options None   Order allow,deny   Allow from all   竟然还是访问不成功,折腾了一会终于发现在httpd.conf里面有这个配置. 把这个改成如下配置,重启apache就行了.…
在Linux上配置xampp后远程访问域名报错: New XAMPP security concept: Access to the requested object is only available from the local network. This setting can be configured in the file "httpd-xampp.conf". 初步分析了一下错误原因是:安全异常,需要修改httpd-xampp.conf.这个文件在:/opt/lampp/…
xampp 无论在window 还是在 Mac 如出现以下错误的:通常的解决方式: 具体配置教程可以任意查相关资料既可,(配置子站子大致流程如:开启httpd.conf的inc...httpd-vhosts.conf,然后打开这个文件配置如下: <VirtualHost *:80> ServerAdmin mall@mail.com DocumentRoot "do-Path" ServerName domian.com ServerAlias www.domain.com…