博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Apache多站点设定
阅读量:6867 次
发布时间:2019-06-26

本文共 2917 字,大约阅读时间需要 9 分钟。

多端口

vi httpd.confListen 8090
ServerName localhost Documentroot "/Users/dir/8090"
Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all

另外一种方式

vhost设定http.conf
AllowOverride none #Require all denied加载vhost.confvhost.conf
#ServerAdmin webmaster@dummy-host2.example.com DocumentRoot "/Users/zhoutingze/project/maturi/maturi/docroot/web" ServerName adtuu-project.com ServerAlias www.adtuu-project.com #ErrorLog "logs/dummy-host2.example.com-error_log" #CustomLog "logs/dummy-host2.example.com-access_log" common
Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Order allow,deny Allow from all
#ServerAdmin webmaster@dummy-host2.example.com DocumentRoot "/Users/zhoutingze/webroot" ServerName adtuu-server.com ServerAlias www.adtuu-server.com #ErrorLog "logs/dummy-host2.example.com-error_log" #CustomLog "logs/dummy-host2.example.com-access_log" common
Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Order allow,deny Allow from all
# Virtual Hosts## Required modules: mod_log_config# If you want to maintain multiple domains/hostnames on your# machine you can setup VirtualHost containers for them. Most configurations# use only name-based virtual hosts so the server doesn't need to worry about# IP addresses. This is indicated by the asterisks in the directives below.## Please see the documentation at #
# for further details before you try to setup virtual hosts.## You may use the command line option '-S' to verify your virtual host# configuration.## VirtualHost example:# Almost any Apache directive may go into a VirtualHost container.# The first VirtualHost section is used for all requests that do not# match a ServerName or ServerAlias in any
block.#
#ServerAdmin webmaster@dummy-host2.example.com DocumentRoot "/Users/zhoutingze/project/maturi/maturi/docroot/web" ServerName adtuu-project.com ServerAlias www.adtuu-project.com #ErrorLog "logs/dummy-host2.example.com-error_log" #CustomLog "logs/dummy-host2.example.com-access_log" common
Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Order allow,deny Allow from all
#ServerAdmin webmaster@dummy-host2.example.com DocumentRoot "/Users/zhoutingze/webroot" ServerName adtuu-server.com ServerAlias www.adtuu-server.com #ErrorLog "logs/dummy-host2.example.com-error_log" #CustomLog "logs/dummy-host2.example.com-access_log" common
Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Order allow,deny Allow from all

  

转载于:https://www.cnblogs.com/adtuu/p/4723521.html

你可能感兴趣的文章
马拉车
查看>>
PHP计算中英混输字符串长度
查看>>
java有车有房有能力最基本运用
查看>>
js创建,获取,检测cookie
查看>>
子查询:相关子查询、无关子查询
查看>>
Python-使用Magellan进行数据匹配总结
查看>>
jersey rest webservice
查看>>
java 获取指定日前的前一天
查看>>
position
查看>>
ios内存管理(转)
查看>>
Unity 屏幕外死亡的敌人的分数显示在屏幕内
查看>>
整理网上的关于 路径遍历漏洞
查看>>
H5 离线缓存的用法
查看>>
我们为什么需要Windows Workflow Foundation?(摘)
查看>>
五笔打字学习
查看>>
vector
查看>>
printf("%d\n",printf("%d",printf("%d",i)));
查看>>
最小转弯问题
查看>>
Java线程(一)
查看>>
JQuery的几个小问题
查看>>