Advertisement
Guest User

httpd-vhost.conf file

a guest
May 30th, 2015
428
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. # Virtual Hosts
  2. #
  3. # Required modules: mod_log_config
  4.  
  5. # If you want to maintain multiple domains/hostnames on your
  6. # machine you can setup VirtualHost containers for them. Most configurations
  7. # use only name-based virtual hosts so the server doesn't need to worry about
  8. # IP addresses. This is indicated by the asterisks in the directives below.
  9. #
  10. # Please see the documentation at
  11. # <URL:http://httpd.apache.org/docs/2.4/vhosts/>
  12. # for further details before you try to setup virtual hosts.
  13. #
  14. # You may use the command line option '-S' to verify your virtual host
  15. # configuration.
  16.  
  17. <VirtualHost *:80>
  18. DocumentRoot "/Library/WebServer/Documents"
  19. </VirtualHost>
  20.  
  21. <VirtualHost *:80>
  22. DocumentRoot "/Users/Roy/Websites"
  23. ServerName roy.local
  24. ErrorLog "/private/var/log/apache2/roy.local-error_log"
  25. CustomLog "/private/var/log/apache2/roy.local-access_log" common
  26.  
  27. <Directory "/Users/Roy/Websites">
  28. AllowOverride All
  29. Order allow,deny
  30. Allow from all
  31. </Directory>
  32. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement