Advertisement
Guest User

Untitled

a guest
Jul 24th, 2014
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.95 KB | None | 0 0
  1. NameVirtualHost *:80
  2.  
  3. #
  4. # VirtualHost example:
  5. # Almost any Apache directive may go into a VirtualHost container.
  6. # The first VirtualHost section is used for all requests that do not
  7. # match a ServerName or ServerAlias in any <VirtualHost> block.
  8. #
  9. <VirtualHost *:80>
  10. ServerName dev.a.local
  11. ServerAlias dev.a.local
  12. DocumentRoot "D:/wwwroot/a/public"
  13. ErrorLog "logs/a.log"
  14. CustomLog "logs/a-access.log" common
  15.  
  16. <Directory "D:/wwwroot/a/public">
  17. Options Indexes FollowSymLinks
  18. AllowOverride All
  19. # Controls who can get stuff from this server.
  20. Order allow,deny
  21. Allow from all
  22. DirectoryIndex index.php
  23. </Directory>
  24. </VirtualHost>
  25.  
  26. <VirtualHost *:80>
  27. ServerName dev.b.local
  28. ServerAlias dev.b.local
  29. DocumentRoot "D:/wwwroot/b/public"
  30. ErrorLog "logs/b.log"
  31. CustomLog "logs/b-access.log" common
  32.  
  33. <Directory "D:/wwwroot/b/public"s>
  34. Options Indexes FollowSymLinks
  35. AllowOverride All
  36. # Controls who can get stuff from this server.
  37. Order allow,deny
  38. Allow from all
  39. DirectoryIndex index.php
  40. </Directory>
  41. </VirtualHost>
  42.  
  43. 127.0.0.1 dev.a.local
  44. 127.0.0.1 dev.b.local
  45.  
  46. <VirtualHost *:80>
  47.  
  48. NameVirtualHost *:80
  49.  
  50. <VirtualHost dev.a.local>
  51. DocumentRoot "D:/wwwroot/a/public"
  52. ErrorLog "logs/a.log"
  53. CustomLog "logs/a-access.log" common
  54.  
  55. <Directory "D:/wwwroot/a/public">
  56. Options Indexes FollowSymLinks
  57. AllowOverride All
  58. # Controls who can get stuff from this server.
  59. Order allow,deny
  60. Allow from all
  61. DirectoryIndex index.php
  62. </Directory>
  63. </VirtualHost>
  64.  
  65. <VirtualHost dev.b.local>
  66. DocumentRoot "D:/wwwroot/b/public"
  67. ErrorLog "logs/b.log"
  68. CustomLog "logs/b-access.log" common
  69.  
  70. <Directory "D:/wwwroot/b/public">
  71. Options Indexes FollowSymLinks
  72. AllowOverride All
  73. # Controls who can get stuff from this server.
  74. Order allow,deny
  75. Allow from all
  76. DirectoryIndex index.php
  77. </Directory>
  78. </VirtualHost>
  79.  
  80. Include /path/to/virtual-hosts.conf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement