httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Miller" <srmil...@interbel.net>
Subject Re: [users@httpd] Beginner Virtual Host question
Date Tue, 18 Mar 2003 04:17:59 GMT
Here's a copy of mine - hope it helps

NameVirtualHost 111.222.333.444  <- one of these per IP on the server if more than one

<VirtualHost 111.222.333.444>
DocumentRoot /home/domains/www.domain.net
ServerName www.domain.net
ServerAlias domain.net
</VirtualHost>

If you want log files per domain, or want to include SSI, then do it like this:

<VirtualHost 111.222.333.444>
DocumentRoot /home/domains/www.domain.com
ServerName www.domain.com
ServerAlias domain.com
ScriptAlias /cgi-bin/ /home/domains/www.domain.com/cgi-bin/
  # Allow Server-Side Includes
  <Directory /home/domains/www.domain.com>
    AddHandler  server-parsed shtml html htm
    Options     +Includes
  </Directory>
CustomLog /home/domains/www.domain.com/logs/access_log combined
ErrorLog /home/domains/www.domain.com/logs/error_log
</VirtualHost>
  ----- Original Message ----- 
  From: Sparky Kopetzky 
  To: users@httpd.apache.org 
  Sent: Monday, March 17, 2003 8:55 PM
  Subject: [users@httpd] Beginner Virtual Host question


  Greetings!!

  I have just recently established a new ISP and am running Apache 2.?? and RedHat 8.0. I
develop software and other such items for the web and want to create a virtual host to develop
from. I started with this:

  <Virtual Host *>
     ServerName development
     DocumentRoot /httpd/development
  </VirtualHost>

  Apache threw a fit with an error stating the mixing *-ports and non *-ports was a no-no.

  What did I do wrong and is there a simple solution?? I really would like to know.

  Robin Kopetzky
  Black Mesa Internet Services
  www.blackmesa-isp.net




  ---
  Outgoing mail is certified Virus Free.
  Checked by AVG anti-virus system (http://www.grisoft.com).
  Version: 6.0.462 / Virus Database: 261 - Release Date: 3/13/2003
Mime
View raw message