| #---------------------------------------------------------------# |
| # VIRTUAL HOST SECTION NON-SSL |
| #---------------------------------------------------------------# |
| # VirtualHost directive allows you to specify another virtual |
| # domain on your server. Most Apache options can be specified |
| # within this section. |
| Listen 10.10.10.10:80 |
| <VirtualHost 10.10.10.10:80> |
# Mail to this address on errors |
| ServerAdmin webmaster@domain1.com |
# Where documents are kept in the virtual domain |
| # this is an absolute path. So you may want to put |
| # in a location where the owner can get to it. |
| DocumentRoot /home/vhosts/domain1.com/www/ |
# Since we will use PHP to create basically |
| # all our file we put a directive to the Index file. |
| DirectoryIndex index.php |
# Name of the server |
| ServerName www.domain1.com |
# Log files Relative to ServerRoot option |
| ErrorLoglogs/domain1.com-error_log |
| TransferLog logs/domain1.com-access_log |
| RefererLog logs/domain1.com-referer_log |
| AgentLoglogs/domain1.com-agent_log |
# Use CGI scripts in this domain. In the next case you |
| # can see that it does not have CGI scripts. Please |
| # read up on the security issues relating to CGI-scripting |
| ScriptAlias /cgi-bin/ /var/www/cgi-bin/domain1.com/ |
| AddHandler cgi-script .cgi |
| AddHandler cgi-script .pl |
| </VirtualHost> |
| Listen 10.10.10.20:80 |
| <VirtualHost 10.10.10.20:80> |
# This is another domain. Note that you could host |
| # multiple domains this way... |
# Mail to this address on errors |
| ServerAdmin webmaster@domain2.com |
# Where documents are kept in the virtual domain |
| DocumentRoot /virtual/domain2.com/www/html |
# Name of the server |
| ServerName www.domain2.com |
# Log files Relative to ServerRoot option |
| ErrorLoglogs/domain2.com-error_log |
| TransferLog logs/domain2.com-access_log |
| RefererLog logs/domain2.com-referer_log |
| AgentLoglogs/domain2.com-agent_log |
# No CGI's for this host |
| </VirtualHost> |
# End: virtual host section |