Advertisement
Guest User

Untitled

a guest
Oct 18th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.14 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. # Use name-based virtual hosting.
  19. #
  20. ##NameVirtualHost *:80
  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 webmaster@dummy-host.example.com
  29. ##DocumentRoot "C:/xampp/htdocs/dummy-host.example.com"
  30. ##ServerName dummy-host.example.com
  31. ##ServerAlias www.dummy-host.example.com
  32. ##ErrorLog "logs/dummy-host.example.com-error.log"
  33. ##CustomLog "logs/dummy-host.example.com-access.log" common
  34. ##</VirtualHost>
  35.  
  36. ##<VirtualHost *:80>
  37. ##ServerAdmin webmaster@dummy-host2.example.com
  38. ##DocumentRoot "C:/xampp/htdocs/dummy-host2.example.com"
  39. ##ServerName dummy-host2.example.com
  40. ##ErrorLog "logs/dummy-host2.example.com-error.log"
  41. ##CustomLog "logs/dummy-host2.example.com-access.log" common
  42. ##</VirtualHost>
  43.  
  44. <VirtualHost *:82>
  45.  
  46. DocumentRoot "C:/xampp/htdocs/localhost"
  47. ServerName localhost
  48.  
  49. </VirtualHost>
  50.  
  51. <VirtualHost *:82>
  52.  
  53. DocumentRoot "C:/xampp/htdocs/code2/public"
  54. ServerName code2.rs
  55.  
  56. </VirtualHost>
  57. <VirtualHost *:82>
  58.  
  59. DocumentRoot "C:/xampp/htdocs/code1/public"
  60. ServerName code1.rs
  61.  
  62. </VirtualHost>
  63. <VirtualHost *:82>
  64.  
  65. DocumentRoot "C:/xampp/htdocs/code3/public"
  66. ServerName code3.rs
  67.  
  68. </VirtualHost>
  69. <VirtualHost *:82>
  70.  
  71. DocumentRoot "C:/xampp/htdocs/code/public"
  72. ServerName code.com
  73.  
  74. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement