00_default_vhost.conf 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. ### Section 3: Virtual Hosts
  2. #
  3. # VirtualHost: If you want to maintain multiple domains/hostnames on your
  4. # machine you can setup VirtualHost containers for them. Most configurations
  5. # use only name-based virtual hosts so the server doesn't need to worry about
  6. # IP addresses. This is indicated by the asterisks in the directives below.
  7. #
  8. # Please see the documentation at
  9. # <URL:http://httpd.apache.org/docs-2.0/vhosts/>
  10. # for further details before you try to setup virtual hosts.
  11. #
  12. # You may use the command line option '-S' to verify your virtual host
  13. # configuration.
  14. #
  15. # Use name-based virtual hosting.
  16. #
  17. NameVirtualHost *:80
  18. #
  19. # VirtualHost example:
  20. # Almost any Apache directive may go into a VirtualHost container.
  21. # The first VirtualHost section is used for requests without a known
  22. # server name.
  23. #
  24. #<VirtualHost *:80>
  25. # ServerAdmin webmaster@dummy-host.example.com
  26. # DocumentRoot /www/docs/dummy-host.example.com
  27. # ServerName dummy-host.example.com
  28. # ErrorLog @rel_logfiledir@/dummy-host.example.com-error_log
  29. # CustomLog @rel_logfiledir@/dummy-host.example.com-access_log common
  30. #</VirtualHost>
  31. #
  32. # The First Virtual Host is also your DEFAULT Virtual Host.
  33. # This means any requests that do not match any other vhosts will
  34. # goto this virtual host.
  35. #
  36. <IfDefine DEFAULT_VHOST>
  37. <VirtualHost *:80>
  38. #
  39. # DocumentRoot: The directory out of which you will serve your
  40. # documents. By default, all requests are taken from this directory, but
  41. # symbolic links and aliases may be used to point to other locations.
  42. #
  43. DocumentRoot "/var/www/localhost/htdocs"
  44. #
  45. # This should be changed to whatever you set DocumentRoot to.
  46. #
  47. <Directory "/var/www/localhost/htdocs">
  48. #
  49. # Possible values for the Options directive are "None", "All",
  50. # or any combination of:
  51. # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
  52. #
  53. # Note that "MultiViews" must be named *explicitly* --- "Options All"
  54. # doesn't give it to you.
  55. #
  56. # The Options directive is both complicated and important. Please see
  57. # http://httpd.apache.org/docs-2.0/mod/core.html#options
  58. # for more information.
  59. #
  60. Options Indexes FollowSymLinks
  61. #
  62. # AllowOverride controls what directives may be placed in .htaccess files.
  63. # It can be "All", "None", or any combination of the keywords:
  64. # Options FileInfo AuthConfig Limit
  65. #
  66. AllowOverride None
  67. #
  68. # Controls who can get stuff from this server.
  69. #
  70. Order allow,deny
  71. Allow from all
  72. </Directory>
  73. <IfModule peruser.c>
  74. # this must match a Processor
  75. ServerEnvironment apache apache
  76. # these are optional - defaults to the values specified in httpd.conf
  77. MinSpareProcessors 4
  78. MaxProcessors 20
  79. </IfModule>
  80. </VirtualHost>
  81. </IfDefine>