Advertisement
Guest User

httpd.vhosts.conf

a guest
Jan 21st, 2023
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.10 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. #
  18. # VirtualHost example:
  19. # Almost any Apache directive may go into a VirtualHost container.
  20. # The first VirtualHost section is used for all requests that do not
  21. # match a ServerName or ServerAlias in any <VirtualHost> block.
  22. #
  23. #<VirtualHost *:80>
  24. # ServerAdmin webmaster@dummy-host.example.com
  25. # DocumentRoot "/usr/docs/dummy-host.example.com"
  26. # ServerName dummy-host.example.com
  27. # ServerAlias www.dummy-host.example.com
  28. # ErrorLog "/private/var/log/apache2/dummy-host.example.com-error_log"
  29. # CustomLog "/private/var/log/apache2/dummy-host.example.com-access_log" common
  30. #</VirtualHost>
  31.  
  32. #<VirtualHost *:80>
  33. # ServerAdmin webmaster@dummy-host2.example.com
  34. # DocumentRoot "/usr/docs/dummy-host2.example.com"
  35. # ServerName dummy-host2.example.com
  36. # ErrorLog "/private/var/log/apache2/dummy-host2.example.com-error_log"
  37. # CustomLog "/private/var/log/apache2/dummy-host2.example.com-access_log" common
  38. #</VirtualHost>
  39.  
  40. <VirtualHost *:80>
  41. ServerAdmin webmaster@dummy-host2.example.com
  42. DocumentRoot "/Users/[my username]/Desktop/lab-compliance/public"
  43. ServerName dev.labcompliance.com
  44. ErrorLog "/private/var/log/apache2/dummy-host2.example.com-error_log"
  45. CustomLog "/private/var/log/apache2/dummy-host2.example.com-access_log" common
  46.  
  47. <Directory "/Users/[my username]/Desktop/lab-compliance/public">
  48.  
  49. AllowOverride All
  50. Options Indexes MultiViews FollowSymLinks
  51. Require all granted
  52.  
  53.  
  54. </Directory>
  55. </VirtualHost>
  56.  
  57.  
  58.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement