Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  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. # Use name-based virtual hosting.
  17. #
  18. NameVirtualHost *:80
  19. #
  20. # VirtualHost example:
  21. # Almost any Apache directive may go into a VirtualHost container.
  22. # The first VirtualHost section is used for all requests that do not
  23. # match a ServerName or ServerAlias in any <VirtualHost> block.
  24. #
  25. <VirtualHost *:80>
  26. DocumentRoot /Applications/MAMP/htdocs
  27. ServerName localhost
  28. </VirtualHost>
  29. <VirtualHost *:80>
  30. DocumentRoot "/Applications/MAMP/htdocs/Mardear/public"
  31. ServerName mardear.local
  32. <Directory "/Applications/MAMP/htdocs/Mardear/public">
  33. DirectoryIndex index.php
  34. Options All
  35. AllowOverride All
  36. Order allow,deny
  37. Allow from all
  38. </Directory>
  39. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement