daily pastebin goal
9%
SHARE
TWEET

Untitled

a guest Jan 19th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. #
  17. # Use name-based virtual hosting.
  18. #
  19. NameVirtualHost *:8085
  20.  
  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 "/usr/docs/dummy-host.example.com"
  30. #    ServerName dummy-host.example.com
  31. #    ServerAlias www.dummy-host.example.com
  32. #    ErrorLog "/private/var/log/apache2/dummy-host.example.com-error_log"
  33. #    CustomLog "/private/var/log/apache2/dummy-host.example.com-access_log" common
  34. #</VirtualHost>
  35.  
  36. #<VirtualHost *:80>
  37. #    ServerAdmin webmaster@dummy-host2.example.com
  38. #    DocumentRoot "/usr/docs/dummy-host2.example.com"
  39. #    ServerName dummy-host2.example.com
  40. #    ErrorLog "/private/var/log/apache2/dummy-host2.example.com-error_log"
  41. #    CustomLog "/private/var/log/apache2/dummy-host2.example.com-access_log" common
  42. #</VirtualHost>
  43.  
  44. <VirtualHost *:8085>
  45.     ServerName 127.0.0.1:8085
  46.     DocumentRoot "/Users/path/to/root/"
  47. </VirtualHost>
  48.    
  49. VirtualHost configuration:
  50. wildcard NameVirtualHosts and _default_ servers:
  51. *:8085                 is a NameVirtualHost
  52.          default server 127.0.0.1 (/private/etc/apache2/extra/httpd-vhosts.conf:44)
  53.          port 8085 namevhost 127.0.0.1 (/private/etc/apache2/extra/httpd-vhosts.conf:44)
  54. Syntax OK
  55.    
  56. [Sat Jul 19 19:12:38 2014] [notice] SIGHUP received.  Attempting to restart
  57. [Sat Jul 19 19:12:38 2014] [notice] Digest: generating secret for digest authentication ...
  58. [Sat Jul 19 19:12:38 2014] [notice] Digest: done
  59. [Sat Jul 19 19:12:38 2014] [notice] Apache/2.2.26 (Unix) DAV/2 mod_ssl/2.2.26 OpenSSL/0.9.8y configured -- resuming normal operations
  60.    
  61. <VirtualHost 127.0.0.1:8085>
  62.     DocumentRoot "/Users/path/to/root/"
  63. </VirtualHost>
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
 
Top