apachevirtualhost


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<VirtualHost *:80>

ServerAdmin [email protected]

DocumentRoot "G:/xampp/htdocs/tp"

ServerName tp.localhost

</VirtualHost>


mac

<virtualhost *:80>

ServerName mysite.local

DocumentRoot "/Users/yourusername/path/to/your/site"

<directory "/Users/yourusername/path/to/your/site">

Options Indexes FollowSymLinks Includes ExecCGI

AllowOverride All

Require all granted

</directory>

ErrorLog "logs/mysite.local-error_log"

</virtualhost>