文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档> apache的多站点虚拟主机配置方法

apache的多站点虚拟主机配置方法

时间:2009-05-21  来源:sjhf

linux下apache服务器多虚拟主机的配置
我想在服务器的80端口进行配置(当然你也可添加其他的端口)
1:安装apache,这部分我在前面写过,就不重复了
2:我把apache安装在/usr/local/目录下,即apache的安装目录为/usr/local/apache
3:
    Alias /cs "/usr/local/apache/htdocs/phpmyadmin/"
   <directory "/usr/local/apache/www1">
    allow from all
   </directory>
    DirectoryIndex index.php
</VirtualHost>
<VirtualHost 192.168.1.231:80>
    ServerName www.c.com
    DocumentRoot "/usr/local/apache/htdocs"
   <directory "/usr/local/apache/htdocs">
    allow from all
   </directory>
    DirectoryIndex index.html index.php
</VirtualHost>
#Alias /cs "/usr/local/apache/htdocs/phpmyadmin/"这个表示建立虚拟目录为cs,指向地点为phpmyadmin目录
    DirectoryIndex index.php index.html
 </IfModule>
</VirtualHost>
cronolog下载地址:
http://cronolog.org/download/cronolog-1.6.2.tar.gz

本文出自 “linux进阶屋” 博客,谢绝转载!

相关阅读 更多 +
排行榜 更多 +
王牌食神

王牌食神

音乐节奏 下载
生理期记录

生理期记录

健康医疗 下载
露娜大冒险

露娜大冒险

动作格斗 下载