windows 域名+虚拟目录 (php)
程序员文章站
2022-05-23 15:55:47
...
1.修改windows 域名
C:\WINDOWS\system32\drivers\etc\hosts
127.0.0.1 localhost
C:\WINDOWS\system32\drivers\etc\hosts
127.0.0.1 localhost
192.168.0.100 abc
127.0.0.2 a
2.修改apache的虚拟目录
C:\xampp\apache\conf\extra\httpd-vhosts.conf
ServerName tradesns
DocumentRoot D:/tradesns
Options FollowSymLinks IncludesNOEXEC Indexes
DirectoryIndex index.html index.htm default.htm index.php default.php
AllowOverride all
Order Deny,Allow
Allow from all
ServerName a
DocumentRoot D:/tradesns2
Options FollowSymLinks IncludesNOEXEC Indexes
DirectoryIndex index.html index.htm default.htm index.php default.php
AllowOverride all
Order Deny,Allow
Allow from all
推荐阅读
-
windows7下安装php的imagick和imagemagick扩展教程
-
PHP在Windows IIS上传的图片无法访问的解决方法
-
Windows下Nginx + PHP5 的安装与配置方法
-
Windows下Nginx+PHP5的安装与配置方法
-
PHP JS Ip地址及域名格式检测代码
-
PHP用mb_string函数库处理与windows相关中文字符及Win环境下开启PHP Mb_String方法
-
php上传文件到服务器要求(讲解windows搭建php环境)
-
PHP中把错误日志保存在系统日志中(Windows系统)
-
怎么在Windows系统中搭建php环境
-
浅谈Windows下 PHP4.0与oracle 8的连接设置