l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2002 Jun 26 17:37

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] web server question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] web server question

On Wed, 26 Jun 2002, Peter Jay Salzman wrote:
> suppose i have two domains:
> www.freshandsassy.org
> www.oldandtired.com
> suppose:
> 1.  i'd like requests to http://freshandsassy.org to get:
>     /www1/index.html
> 2. i'd like requests to http://oldandtired.com to get:
>    /www2/index.html
> how would i do this with apache?   is this what people call "virtual
> hosting"?

Sure. Why not? (Assuming apache v1.3)

Edit httpd.conf
Define a "default server" location just as you would for a single IP
address web server.

Many distros include comments in this file. Check it out.

Another place to look, is at your apache htdocs. For virt hosts:

Here is a brief summary:

After you have a server name (for example with an IP address)
and specify a location for default connections with Document root etc...

then you can create the cirtual host containers with settings specific to
the virtual hosts:

#Assuming your IP address is for example: 
<VirtualHost your.ip.address.forexample>
#  ServerName www.freshandsassy.org
  ServerAlias freshandsassy.org www.freshandsassy.org 
  ServerAdmin cornholio@bigdomain.com
  DocumentRoot /www1/index.html
  CustomLog logs/freshandfancy.combined_log full
  CustomLog logs/freshandfancy-access_log combined
  ErrorLog logs/freshandfancy-error_log
  ScriptAlias /cgi-bin/ /www1.cgi-bin/
  Alias /icons/ /usr/share/apache/icons/

#  ServerName www.oldandtired.org
  ServerAlias oldandtired.com www.oldandtired.org 
  ServerAdmin cornholio@bigdomain.com
  DocumentRoot /www1/index.html
  CustomLog logs/oldandtired.combined_log full
  CustomLog logs/oldandtired-access_log combined
  ErrorLog logs/oldandtired-error_log
  ScriptAlias /cgi-bin/ /www1.cgi-bin/
  Alias /icons/ /usr/share/apache/icons/

#Assuming you have defined what is in a "full" and  "combined" log.

The Apache html docs on this are the most authoritative on this.


Version: 3.12
GCS/CM$/IT$/LS$/S/O$ !d--(++) !s !a+++(-----) C++$(++++) U++++$(+$) P+$>+++ 
L+++$(++) E W+++$(+) N+ o K w+$>++>+++ O-@ M+$ V-$>- !PS !PE Y+ !PGP
t@-(++) 5+@ X@ R- tv- b++ DI+++ D+ G--@ e+>++>++++ h(++)>+ r*>? z?
decode: http://www.ebb.org/ungeek/ about: http://www.geekcode.com/geek.html

vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
EDGE Tech Corp.
For donating some give-aways for our meetings.