You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Sparky Kopetzky <sp...@blackmesa-isp.net> on 2003/03/18 04:55:31 UTC

[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



Re: [users@httpd] Beginner Virtual Host question

Posted by Renato Salles <ma...@brturbo.com>.
CNAME whath?
Where is the "hostname" where the alias (CNAME) must point to?
Try something like:

www.fatgirls.com	CNAME	www.prettygirls.com

Also, the A record is wrong. It must have 4 doted quads: 200.212.232.192 as exemple.

It is a A (Adress) record not a master zone...


ping and dig are your friends...

Take a brainstorm of DNS: this is the best you can do to yourself.


Best Regards,

RSalles


On Tue, 18 Mar 2003 00:19:44 -0500
Ezra <ez...@acedsl.com> wrote:

>                             I have a setup similar to yours, but mine is 
> not working.  I'm sure it's a DNS problem.  How do you set up your 
> foward mapping file to  allow virtual hosting.
> 
> Note: I run my own DNS servers, so I can make any changes you suggest. 
>  My setup looks something like this:
> 
> 
> prettygirls.com                        IN        A      123.456.789
> 
> 
> www.prettygirls.com                                        cname 
> prettygirls.com
> www.fatgirls.com                                              cname 
> prettygirls.com
> www.reallyFatGirls.com                                   cname 
> prettygirls.com
> 
> can you tell me what I'm doing wrong.
> 
> Thank You
> Ezra Taylor
> 
> Scott Miller wrote:
> 
> > 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 <http://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 <http://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 <ma...@blackmesa-isp.net>
> >     To: users@httpd.apache.org <ma...@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 <http://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
> >
> 
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 

Re: [users@httpd] Beginner Virtual Host question

Posted by Ezra <ez...@acedsl.com>.
Hello Scott:
                            I have a setup similar to yours, but mine is 
not working.  I'm sure it's a DNS problem.  How do you set up your 
foward mapping file to  allow virtual hosting.

Note: I run my own DNS servers, so I can make any changes you suggest. 
 My setup looks something like this:


prettygirls.com                        IN        A      123.456.789


www.prettygirls.com                                        cname 
prettygirls.com
www.fatgirls.com                                              cname 
prettygirls.com
www.reallyFatGirls.com                                   cname 
prettygirls.com

can you tell me what I'm doing wrong.

Thank You
Ezra Taylor

Scott Miller wrote:

> 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 <http://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 <http://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 <ma...@blackmesa-isp.net>
>     To: users@httpd.apache.org <ma...@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 <http://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
>



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Beginner Virtual Host question

Posted by Scott Miller <sr...@interbel.net>.
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

Re: [users@httpd] Beginner Virtual Host question

Posted by Nathan Ollerenshaw <na...@valuecommerce.ne.jp>.
On Tuesday, March 18, 2003, at 12:55 PM, Sparky Kopetzky wrote:

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

VirtualHost is one word.

-- 
Nathan Ollerenshaw - Systems Engineer - Shared Hosting
ValueCommerce Japan - http://www.valuecommerce.ne.jp

If you think nobody cares if you're alive, try missing a
couple of car payments.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org