SHARE
TWEET

Untitled

a guest Dec 26th, 2015 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Virtual Hosts
  2. #
  3. # If you want to maintain multiple domains/hostnames on your
  4. # machine you can setup VirtualHost containers for them. Most configurations
  5. # use only name-based virtual hosts so the server doesn't need to worry about
  6. # IP addresses. This is indicated by the asterisks in the directives below.
  7. #
  8. # Please see the documentation at
  9. # <URL:http://httpd.apache.org/docs/2.2/vhosts/>
  10. # for further details before you try to setup virtual hosts.
  11. #
  12. # You may use the command line option '-S' to verify your virtual host
  13. # configuration.
  14.  
  15. <IfDefine DEFAULT_VHOST>
  16. # see bug #178966 why this is in here
  17.  
  18. # Listen: Allows you to bind Apache to specific IP addresses and/or
  19. # ports, instead of the default. See also the <VirtualHost>
  20. # directive.
  21. #
  22. # Change this to Listen on specific IP addresses as shown below to
  23. # prevent Apache from glomming onto all bound IP addresses.
  24. #
  25. #Listen 12.34.56.78:80
  26. Listen 192.168.1.147:80
  27.  
  28. # Use name-based virtual hosting.
  29. NameVirtualHost *:80
  30.  
  31. # When virtual hosts are enabled, the main host defined in the default
  32. # httpd.conf configuration will go away. We redefine it here so that it is
  33. # still available.
  34. #
  35. # If you disable this vhost by removing -D DEFAULT_VHOST from
  36. # /etc/conf.d/apache2, the first defined virtual host elsewhere will be
  37. # the default.
  38. <VirtualHost *:80>
  39.         ServerName faintfuzzies.ca
  40.         Include /etc/apache2/vhosts.d/default_vhost.include
  41.  
  42.         <IfModule mpm_peruser_module>
  43.                 ServerEnvironment apache apache
  44.         </IfModule>
  45. </VirtualHost>
  46.  
  47.  
  48. <Directory "/var/www/localhost/htdocs/phpyadmin">
  49.     AllowOverride All
  50.     Options FollowSymlinks
  51.     Order allow,deny
  52.     Allow from all
  53. </Directory>
  54.  
  55. </IfDefine>
  56.  
  57. # vim: ts=4 filetype=apache
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top