Last active
February 12, 2019 03:02
-
-
Save imvkmark/5544828 to your computer and use it in GitHub Desktop.
Apache 主机配置文件
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Location /svn> | |
DAV svn | |
SVNPath /webdata/svn/liexiang-tech | |
AuthType Basic | |
AuthName "Authorization Realm" | |
AuthUserFile /webdata/svn/liexiang-tech/conf/passwdfile | |
AuthzSVNAccessFile /webdata/svn/liexiang-tech/conf/authz | |
Require valid-user | |
</Location> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NameVirtualHost *:80 | |
# | |
# 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 <VirtualHost> block. | |
# | |
<VirtualHost *:80> | |
DocumentRoot "d:/www" | |
ServerName www.www.cc | |
ServerAlias thisdomain.com www.otherdomain.com | |
<Directory "d:/www"> | |
Options Indexes FollowSymLinks | |
AllowOverride All | |
Order deny,allow | |
#Deny from all | |
Allow from all | |
</Directory> | |
</VirtualHost> | |
# short | |
<VirtualHost *:80> | |
ServerName www.sanhaojie.cc | |
Options FollowSymLinks Indexes | |
DocumentRoot "G:/wamp/www/sanhaojie" | |
</VirtualHost> | |
# log/all | |
<VirtualHost *:80> | |
ServerName www.dzbaidu.cc | |
DocumentRoot "G:/wamp/www/dzbaidu" | |
ServerAdmin webmaster@dummy-host.cidi.cc | |
ErrorLog "G:/wamp/logs/dzbaidu.cc-error.log" | |
CustomLog "G:/wamp/logs/dzbaidu.cc-access.log" common | |
<Directory "G:/wamp/www/dzbaidu"> | |
Options FollowSymLinks Indexes | |
Allow from all | |
Order allow,deny | |
AllowOverride None | |
</Directory> | |
</VirtualHost> | |
# simple | |
<VirtualHost *:80> | |
ServerName www.youdezhou.com | |
DocumentRoot "G:/wamp/www/mymps" | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment