ini AdiçãodeVirtual Host ao Apache localhost(MAMP)。 Arquivos:httpd.conf,主机
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ini AdiçãodeVirtual Host ao Apache localhost(MAMP)。 Arquivos:httpd.conf,主机相关的知识,希望对你有一定的参考价值。
Include /Applications/MAMP/conf/apache/extra/httpd-vhosts.conf
#Main Host
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot "/Users/quartel/Documents/www"
ServerName localhost
ServerAlias www.localhost
ErrorLog "logs/localhost-error_log"
CustomLog "logs/localhost-access_log" common
<directory "/Applications/MAMP/htdocs/">
Options All
Order allow,deny
Allow from all
XSendFilePath "/Users/quartel/Documents/www"
</directory>
</VirtualHost>
#Aditional Host
<VirtualHost *:80>
ServerAdmin webmaster@vsh-api
DocumentRoot "/Users/quartel/Documents/www/vsh/api"
ServerName vsh-api
ServerAlias www.vsh-api
ErrorLog "logs/vsh-api-error_log"
CustomLog "logs/vsh-api-access_log" common
<directory "/Users/quartel/Documents/www/vsh/api">
Options All
Order allow,deny
Allow from all
XSendFilePath "/Users/quartel/Documents/www/vsh/api"
</directory>
</VirtualHost>
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
127.0.0.1 vsh-api www.vsh-api
255.255.255.255 broadcasthost
::1 localhost
以上是关于ini AdiçãodeVirtual Host ao Apache localhost(MAMP)。 Arquivos:httpd.conf,主机的主要内容,如果未能解决你的问题,请参考以下文章