Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

httpd-vhosts.conf

By: a guest on May 7th, 2013  |  syntax: Apache Log  |  size: 1.98 KB  |  views: 118  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #
  2. # Virtual Hosts
  3. #
  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.2/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. #
  17. # Use name-based virtual hosting.
  18. #
  19. NameVirtualHost *:80
  20.  
  21. #
  22. # VirtualHost example:
  23. # Almost any Apache directive may go into a VirtualHost container.
  24. # The first VirtualHost section is used for all requests that do not
  25. # match a ServerName or ServerAlias in any <VirtualHost> block.
  26. #
  27. ##<VirtualHost *:80>
  28.     ##ServerAdmin postmaster@dummy-host.localhost
  29.     ##DocumentRoot "C:C:/xampp/htdocs/dummy-host.localhost"
  30.     ##ServerName dummy-host.localhost
  31.     ##ServerAlias www.dummy-host.localhost
  32.     ##ErrorLog "logs/dummy-host.localhost-error.log"
  33.     ##CustomLog "logs/dummy-host.localhost-access.log" combined
  34. ##</VirtualHost>
  35.  
  36.  
  37. NameVirtualHost *
  38. <VirtualHost *>
  39.     DocumentRoot "C:\xampp\htdocs"
  40.     ServerName localhost
  41. </VirtualHost>
  42. <VirtualHost *>
  43.     DocumentRoot "C:\Users\user_name\Documents\project_one"
  44.     ServerName project_one.localhost
  45.     SSLEngine on
  46.     SSLCertificateFile "conf/ssl.crt/server.crt"
  47.     SSLCertificateKeyFile "conf/ssl.key/server.key"
  48.     <Directory "C:\Users\user_name\Documents\project_one">
  49.         AllowOverride All
  50.         Order allow,deny
  51.         Allow from all
  52.     </Directory>
  53. </VirtualHost>
  54. <VirtualHost *>
  55.     DocumentRoot "C:\Users\user_name\Documents\project_two"
  56.     ServerName project_two.localhost
  57.     <Directory "C:\Users\user_name\Documents\project_two">
  58.         AllowOverride All
  59.         Order allow,deny
  60.         Allow from all
  61.     </Directory>
  62. </VirtualHost>