Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
appwiki:apache [2019/01/21 01:38] ying [httpd.conf] |
appwiki:apache [2019/01/21 01:57] (current) ying [httpd.conf] |
||
---|---|---|---|
Line 34: | Line 34: | ||
* VirtualHost config in httpd.conf and hosts file config<code> | * VirtualHost config in httpd.conf and hosts file config<code> | ||
NameVirtualHost 127.0.0.1:80 | NameVirtualHost 127.0.0.1:80 | ||
+ | |||
+ | # allow that directory access if not under http root | ||
+ | <Directory "D:/my_Server/test01_com/htdocs"> | ||
+ | Require all granted | ||
+ | </Directory> | ||
<VirtualHost test01.com:80> | <VirtualHost test01.com:80> | ||
Line 42: | Line 47: | ||
</VirtualHost> | </VirtualHost> | ||
+ | # allow that directory access if not under http root | ||
+ | <Directory "D:/my_Server/test02_com/htdocs"> | ||
+ | Require all granted | ||
+ | </Directory> | ||
+ | |||
+ | # test02.com:80 for that domain or IP, *:80 for any IP | ||
+ | # server admin for optional providing admin contact if error | ||
<VirtualHost test02.com:80> | <VirtualHost test02.com:80> | ||
ServerName www.test02.com | ServerName www.test02.com | ||
ServerAlias test02.com | ServerAlias test02.com | ||
+ | ServerAdmin admin@test02.com | ||
DocumentRoot "D:/my_Server/test02_com/htdocs" | DocumentRoot "D:/my_Server/test02_com/htdocs" | ||
CustomLog "D:/my_Server/log/test02.com.access" combined | CustomLog "D:/my_Server/log/test02.com.access" combined |