Advertisement
Guest User

listen.conf

a guest
Apr 28th, 2013
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.07 KB | None | 0 0
  1. # Listen: Allows you to bind Apache to specific IP addresses and/or
  2. # ports. See also the <VirtualHost> directive.
  3. #
  4. # http://httpd.apache.org/docs-2.2/mod/mpm_common.html#listen
  5. #
  6. # Change this to Listen on specific IP addresses as shown below to
  7. # prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
  8. #
  9. # When we also provide SSL we have to listen to the
  10. # standard HTTP port (see above) and to the HTTPS port
  11. #
  12. # Note: Configurations that use IPv6 but not IPv4-mapped addresses need two
  13. #       Listen directives: "Listen [::]:443" and "Listen 0.0.0.0:443"
  14. #
  15. #Listen 12.34.56.78:80
  16. #Listen 80
  17. #Listen 443
  18.  
  19. Listen 80
  20.  
  21.  
  22. <IfDefine SSL>
  23.     <IfDefine !NOSSL>
  24.     <IfModule mod_ssl.c>
  25.  
  26.         Listen 443
  27.  
  28.     </IfModule>
  29.     </IfDefine>
  30. </IfDefine>
  31.  
  32.  
  33. # Use name-based virtual hosting
  34. #
  35. # - on a specified address / port:
  36. #
  37. #NameVirtualHost 12.34.56.78:80
  38. #
  39. # - name-based virtual hosting:
  40. #
  41. NameVirtualHost *:80
  42. #
  43. # - on all addresses and ports. This is your best bet when you are on
  44. #   dynamically assigned IP addresses:
  45. #
  46. NameVirtualHost *
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement