本文主要是介绍apache虚拟目录,虚拟网站的配置方法,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
修改httpd.conf文件 [虚拟网站的写法] Listen 8002 NameVirtualHost *:8002 <virtualhost *:8002=""> ServerAdmin webmaster@mysqlAdmin.dengsh.com DocumentRoot "D:/Program Files/Apache Group/MySQL/phpMyAdmin-2.9.1.1-all-languages/" ServerName mysqlAdmin.dengsh.com ErrorLog logs/mysqlAdmin.dengsh.com-error_log CustomLog logs/mysqlAdmin.dengsh.com-access_log common </virtualhost> [虚拟目录的写法一] Alias /mysqlAdmin/ "D:/Program Files/Apache Group/MySQL/phpMyAdmin-2.9.1.1-all-languages/" <directory "d:="" program="" files="" apache="" group="" mysql="" phpmyadmin-2.9.1.1-all-languages="" "=""> Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all </directory> [虚拟目录的写法二] #AliasMatch ^/mysqlAdmin(?:/(?:de|en|es|fr|ja|ko|ru))?(/.*)?$ "D:/Program Files/Apache Group/MySQL/phpMyAdmin-2.9.1.1-all-languages$1"这篇关于apache虚拟目录,虚拟网站的配置方法的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!