Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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>
- ServerName dev.a.local
- ServerAlias dev.a.local
- DocumentRoot "D:/wwwroot/a/public"
- ErrorLog "logs/a.log"
- CustomLog "logs/a-access.log" common
- <Directory "D:/wwwroot/a/public">
- Options Indexes FollowSymLinks
- AllowOverride All
- # Controls who can get stuff from this server.
- Order allow,deny
- Allow from all
- DirectoryIndex index.php
- </Directory>
- </VirtualHost>
- <VirtualHost *:80>
- ServerName dev.b.local
- ServerAlias dev.b.local
- DocumentRoot "D:/wwwroot/b/public"
- ErrorLog "logs/b.log"
- CustomLog "logs/b-access.log" common
- <Directory "D:/wwwroot/b/public"s>
- Options Indexes FollowSymLinks
- AllowOverride All
- # Controls who can get stuff from this server.
- Order allow,deny
- Allow from all
- DirectoryIndex index.php
- </Directory>
- </VirtualHost>
- 127.0.0.1 dev.a.local
- 127.0.0.1 dev.b.local
- <VirtualHost *:80>
- NameVirtualHost *:80
- <VirtualHost dev.a.local>
- DocumentRoot "D:/wwwroot/a/public"
- ErrorLog "logs/a.log"
- CustomLog "logs/a-access.log" common
- <Directory "D:/wwwroot/a/public">
- Options Indexes FollowSymLinks
- AllowOverride All
- # Controls who can get stuff from this server.
- Order allow,deny
- Allow from all
- DirectoryIndex index.php
- </Directory>
- </VirtualHost>
- <VirtualHost dev.b.local>
- DocumentRoot "D:/wwwroot/b/public"
- ErrorLog "logs/b.log"
- CustomLog "logs/b-access.log" common
- <Directory "D:/wwwroot/b/public">
- Options Indexes FollowSymLinks
- AllowOverride All
- # Controls who can get stuff from this server.
- Order allow,deny
- Allow from all
- DirectoryIndex index.php
- </Directory>
- </VirtualHost>
- Include /path/to/virtual-hosts.conf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement