日期:2014-05-17  浏览次数:20850 次

如何给某个文件设置端口?
我用的是WAMP环境,在apache 的 http-vhosts.conf里加了以下一段,但提示无法连接数据库,求指点
NameVirtualHost *:8682
<VirtualHost *:8682>
  ServerAdmin webmaster@dummy-host.hleclerc-PC.ingenidev
  ServerName xxxx.xxxx.org
  DocumentRoot "C:\wamp\www\guest"
  <Directory "C:\wamp\www\guest">
  Order Deny,Allow
  Deny from all
  Allow from all
  </Directory>
  Alias /api "C:/wamp/www/api/"
  <Directory "C:\wamp\www\api/">
  Order Deny,Allow
  Deny from all
  Allow from all
  </Directory>
  ErrorLog "C:\wamp\logs\dummy-flowbase-error.log"
  CustomLog "C:\wamp\logs\dummy-flowbase-access.log" common
</VirtualHost>

------解决方案--------------------
编辑httpd.conf,查找Include conf/extra/httpd-vhosts.conf,把前面注释符号“#”删掉