From orca_, 2 Weeks ago, written in Plain Text.
  1. #
  2. # Use name-based virtual hosting.
  3. #
  4. NameVirtualHost *:80
  5. #
  6. # NOTE: NameVirtualHost cannot be used without a port specifier
  7. # (e.g. :80) if mod_ssl is being used, due to the nature of the
  8. # SSL protocol.
  9. #
  10.  
  11. #
  12. # VirtualHost example:
  13. # Almost any Apache directive may go into a VirtualHost container.
  14. # The first VirtualHost section is used for requests without a known
  15. # server name.
  16. #
  17. #<VirtualHost *:80>
  18. #    ServerAdmin webmaster@dummy-host.example.com
  19. #    DocumentRoot /www/docs/dummy-host.example.com
  20. #    ServerName dummy-host.example.com
  21. #    ErrorLog logs/dummy-host.example.com-error_log
  22. #    CustomLog logs/dummy-host.example.com-access_log common
  23. #</VirtualHost>
  24.         <VirtualHost *:80>
  25.                
  26.                 ServerName orcaaccounting.com
  27.                 ServerAlias www.orcaaccounting.com
  28.                 ServerAdmin webmaster@localhost
  29.                 DocumentRoot /var/www/html/public_html
  30.                 ErrorLog /var/log/httpd/orcaaccounting.com-error.log
  31.                 CustomLog /var/log/httpd/orcaaccounting.com-access.log combined
  32.        
  33.    
  34.                         <Directory "/var/www/html/public_html">
  35.                         AllowOverride All
  36.                 </Directory>
  37.                        
  38.         </VirtualHost>
  39.  
  40.  
captcha