Advertisement
syrmosters

LAB1 TEHNOLOGII WEB

Feb 20th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.27 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 *:9090>
  28. ServerAdmin webmaster@infucv.ddns.net
  29. DocumentRoot "/xampp/htdocs"
  30. </VirtualHost>
  31.  
  32. <VirtualHost *:9090>
  33. ServerAdmin webmaster@studucv.ddns.net
  34. DocumentRoot "/xampp/htdocs/studucv.ddns.net"
  35. ServerName studucv.ddns.net
  36. ServerAlias www.studucv.ddns.net
  37. ErrorLog "logs/studucv.ddns.net-error.log"
  38. CustomLog "logs/studucv.ddns.net-access.log" common
  39. </VirtualHost>
  40.  
  41.  
  42. <VirtualHost *:9090>
  43. ServerAdmin webmaster@infucv.ddns.net
  44. DocumentRoot "/xampp/htdocs/infucv.ddns.net"
  45. ServerName infucv.ddns.net
  46. ServerAlias www.infucv.ddns.net
  47. ErrorLog "logs/infucv.ddns.net-error.log"
  48. CustomLog "logs/infucv.ddns.net-access.log" common
  49. </VirtualHost>
  50.  
  51. ##<VirtualHost *:80>
  52. ##ServerAdmin webmaster@dummy-host.example.com
  53. ##DocumentRoot "/xampp/htdocs/dummy-host.example.com"
  54. ##ServerName dummy-host.example.com
  55. ##ServerAlias www.dummy-host.example.com
  56. ##ErrorLog "logs/dummy-host.example.com-error.log"
  57. ##CustomLog "logs/dummy-host.example.com-access.log" common
  58. ##</VirtualHost>
  59.  
  60. ##<VirtualHost *:80>
  61. ##ServerAdmin webmaster@dummy-host2.example.com
  62. ##DocumentRoot "/xampp/htdocs/dummy-host2.example.com"
  63. ##ServerName dummy-host2.example.com
  64. ##ErrorLog "logs/dummy-host2.example.com-error.log"
  65. ##CustomLog "logs/dummy-host2.example.com-access.log" common
  66. ##</VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement