apache-virtual host

NameVirtualHost xxx.xxx.xxx.xxx:80
<VirtualHost xxx.xxx.xxx.xxx:80>
        ServerName xxx.xxx.xxx.xxx
        DocumentRoot D:/WWW
</VirtualHost>
<VirtualHost xxx.xxx.xxx.xxx:80>
        ServerName baidu.com
        DocumentRoot D:/wwwroot/baidu.com
        <Directory "/apple">
                Options Indexes FollowSymLinks
                AllowOverride None
                Order allow,deny
                Allow from all
        </Directory>
</VirtualHost>
<VirtualHost xxx.xxx.xxx.xxx:80>
        ServerName www.baidu.com
        DocumentRoot D:/wwwroot/baidu.com
        <Directory "/apple">
                Options Indexes FollowSymLinks
                AllowOverride None
                Order allow,deny
                Allow from all
        </Directory>
</VirtualHost>
<VirtualHost xxx.xxx.xxx.xxx:80>
        ServerName google.com
        DocumentRoot D:/wwwroot/google.com
        <Directory "/site">
                Options Indexes FollowSymLinks
                AllowOverride None
                Order allow,deny
                Allow from all
        </Directory>
</VirtualHost>
<VirtualHost xxx.xxx.xxx.xxx:80>
        ServerName www.google.com
        DocumentRoot D:/wwwroot/google.com
        <Directory "/site">
                Options Indexes FollowSymLinks
                AllowOverride None
                Order allow,deny
                Allow from all
        </Directory>
</VirtualHost>
<VirtualHost xxx.xxx.xxx.xxx:80>
        ServerName qq.com
        DocumentRoot D:/wwwroot/qq.com
        <Directory "/weixin">
                Options Indexes FollowSymLinks
                AllowOverride None
                Order allow,deny
                Allow from all
        </Directory>
</VirtualHost>
<VirtualHost xxx.xxx.xxx.xxx:80>
        ServerName www.qq.com
        DocumentRoot D:/wwwroot/qq.com
        <Directory "/furuite">
                Options Indexes FollowSymLinks
                AllowOverride None
                Order allow,deny
                Allow from all
        </Directory>
</VirtualHost>

时间: 2024-08-28 04:25:05

apache-virtual host的相关文章

Apache配置基于端口号的虚拟主机 Apache virtual host configuration is based on the port

有可能只有一个ip出口,但却有多个项目,那么就需要基于端口号架设虚拟主机. Step 1: 检查是否开启 httpd-vhosts.conf apache/conf/httpd.conf文件 # Virtual hosts Include conf/extra/httpd-vhosts.conf 如果没有开启,必须在httpd.conf文件中设置:如果开启,则可以在apache/conf/extra/httpd-vhosts.conf文件中设置,当然也还是可以再httpd.conf文件中进行设置

Apache配置基于IP的虚拟主机 Apache virtual host configuration is based on the IP

Step 1: 检查是否开启 httpd-vhosts.conf apache/conf/httpd.conf文件 # Virtual hosts Include conf/extra/httpd-vhosts.conf 如果没有开启,必须在httpd.conf文件中设置:如果开启,则可以在apache/conf/extra/httpd-vhosts.conf文件中设置,当然也还是可以再httpd.conf文件中进行设置,同样有效. Step 2: httpd.conf文件 DocumentRo

Apache Virtual Hosting IP Based and Name Based Virtual Hosts

As we all are aware that Apache is a very powerful, highly flexible and configurable Web server for Nix OS. Here in this tutorial, we are going to discuss one more feature of Apachewhich allows us to host more than one website on a single Linux machi

Apache Server 添加虚拟主机(Virtual Host )

当前许多虚拟服务器如阿里云的ECS服务器,都提供各式各样的虚拟机,常见的有Linux.Windows等,如果我们使用了Apache Server作为虚拟机的Web服务器,并且我们希望多个web应用程序绑定多域名,这时候可以使用Apache Server的Virtual Host 节点进行配置. 下面我们以Linux下,XAMPP一站式生成的web应用程序绑定多域名为例子,实现多个域名绑定多个web应用程序. 1.ssh终端输入vim /opt/lampp/etc/httpd.conf,找到 In

How To Set Up Apache Virtual Hosts on CentOS 6

About Virtual Hosts 虚拟主机,用于在一个单一IP地址上,运行多个域.这对那些想在一个VPS上,运行多个网站的人,尤其有用.基于用户访问的不同网站,给访问者显示不同的信息.没有限制能VPS中,添加的虚拟主机的个数. Set Up 教程中的这些步骤,需要你有root权限.你可以查看Initial Server Setup ,来学习如何设置初始化服务器.这里使用www.作为root的名字,你可以使用你想用的. 另外,你需要在你的VPS上安装并运行apache. 如果没有安装,你可以

hello world to php( mac 配置 xmapp virtual host)

一.安装xmapp.安装完以后查看,服务是否都能启动(数据库和server) 二.配置自己的virtualhost 1.系统host文件加入server的域名(在浏览器中输入域名后会先通过host文件) sudo nano /private/etc/hosts(也能够使用vim打开进行编辑) 2.配置Apache,打开Apache的配置文件 /Applications/XAMPP/etc/httpd.conf # Virtual hosts  Include /Applications/XAMP

Configure Apache Virtual Hosts - CentOS 7

Difficulty: 2Time: 15 minutes Want to host websites on your server? Using Apache? Great. This article will show you how to do exactly that using Apache’s “virtual hosts.” In Apache, you can use virtual hosts to direct http traffic for a given domain

debian apache2.4 virtual host 使用

篇说了debian下安装 debian apache2 和 php7 .但并没有体现apache2已经能使用php7了,这里我们和virtual host一起记录. 先进入到apache所在的目录: 如果有用过wamp的朋友可能会发现目录与windows下的不一样,是的之前我用的centos下的apache的目录结构和windows的一样,debian有点不同,之前在pixelos中安装apache的时候也是如此. 收回来,我们已知debian下apache的目录有点不一样,那区别在哪里呢?主要

虚拟主机 (Virtual Host)

虚拟主机 (Virtual Host) 是在同一台机器搭建属于不同域名或者基于不同 IP 的多个网站服务的技术. 可以为运行在同一物理机器上的各个网站指配不同的 IP 和端口, 也可让多个网站拥有不同的域名. Apache 是世界上使用最广的 Web 服务器, 从 1.1 版开始支持虚拟主机. 本文将讲解在不同服务器 (Redhat Enterprise Linux, Ubuntu Linux, Windows) 上使用 Apache 搭建虚拟主机来搭建多个网站. Redhat Enterpri

设置virtual host

在http.conf确认已载入相关模块 LoadModule vhost_alias_module modules/mod_vhost_alias.so 在httpd-vhosts.conf或者在/home/http/conf/httpd.conf 添加以下配置. <VirtualHost *:80> DocumentRoot "f:/git/minyun" ServerName minyun <Directory "f:/git/minyun"&