httpd-vhosts.conf 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Virtual Hosts
  2. #
  3. # Required modules: mod_log_config
  4. # If you want to maintain multiple domains/hostnames on your
  5. # machine you can setup VirtualHost containers for them. Most configurations
  6. # use only name-based virtual hosts so the server doesn't need to worry about
  7. # IP addresses. This is indicated by the asterisks in the directives below.
  8. #
  9. # Please see the documentation at
  10. # <URL:http://httpd.apache.org/docs/2.4/vhosts/>
  11. # for further details before you try to setup virtual hosts.
  12. #
  13. # You may use the command line option '-S' to verify your virtual host
  14. # configuration.
  15. #
  16. # VirtualHost example:
  17. # Almost any Apache directive may go into a VirtualHost container.
  18. # The first VirtualHost section is used for all requests that do not
  19. # match a ServerName or ServerAlias in any <VirtualHost> block.
  20. #
  21. <VirtualHost *:80>
  22. ServerAdmin webmaster@dummy-host.example.com
  23. DocumentRoot "${SRVROOT}/docs/dummy-host.example.com"
  24. ServerName dummy-host.example.com
  25. ServerAlias www.dummy-host.example.com
  26. ErrorLog "logs/dummy-host.example.com-error.log"
  27. CustomLog "logs/dummy-host.example.com-access.log" common
  28. </VirtualHost>
  29. <VirtualHost *:80>
  30. ServerAdmin webmaster@dummy-host2.example.com
  31. DocumentRoot "${SRVROOT}/docs/dummy-host2.example.com"
  32. ServerName dummy-host2.example.com
  33. ErrorLog "logs/dummy-host2.example.com-error.log"
  34. CustomLog "logs/dummy-host2.example.com-access.log" common
  35. </VirtualHost>