LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-13-2003, 10:34 AM   #1
Manuel-H
Member
 
Registered: Apr 2003
Location: Singapore
Distribution: Slackware32/64, Ubuntu, Fedora, RHEL
Posts: 138

Rep: Reputation: 15
Apache ServerAlias help


I need help on this serveralias, below are my observation and hope you can help.
Hope I do not need two VIRTUALHOST for two host names.

Using Slack9, Apache/1.3.27 (Unix) mod_ssl/2.8.12 OpenSSL/0.9.7a PHP/4.3.1

Appreciate any help that I can get.

<VirtualHost *>
ServerAdmin webmaster@vdomain.com
DocumentRoot /var/www/htdocs/vdomain.com/
ServerName vdomain.com
ServerAlias www.vdomain.com
</VirtualHost>
or
<VirtualHost *>
ServerAdmin webmaster@vdomain.com
DocumentRoot /var/www/htdocs/vdomain.com/
ServerName www.vdomain.com
ServerAlias vdomain.com
</VirtualHost>
Display www.vdomain.com correctly but vdomain.com will point to the /var/www/htdocs/


<VirtualHost *>
ServerAdmin webmaster@vdomain.com
DocumentRoot /var/www/htdocs/vdomain.com/
ServerName vdomain.com
</VirtualHost>
Display vdomain.com correctly

<VirtualHost *>
ServerAdmin webmaster@vdomain.com
DocumentRoot /var/www/htdocs/vdomain.com/
ServerName www.vdomain.com
</VirtualHost>
Display www.vdomain.com correctly

Last edited by Manuel-H; 04-13-2003 at 10:36 AM.
 
Old 04-19-2003, 11:51 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 256Reputation: 256Reputation: 256
Not sure what your exactly asking? Are you asking which one is correct configuration? Have you checked the apache documention at www.apache.org ? They tend to have great documentation which is easy to understand and follow.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail from Apache being rejected - Cannot route to sender apache@localhost.localdomain jimwillsher Linux - Networking 2 01-19-2006 01:41 AM
Apache 1.3.33 (debian built) and Apache SSL does not respond to the proper ports lqorg_user Linux - Networking 0 11-06-2005 05:11 PM
Apache Webserver 403 Forbidden Errors (User not in apache group?) Mankind75 Mandriva 4 07-08-2004 06:30 AM
ServerAlias question tommytomato Linux - Newbie 3 12-05-2003 08:00 PM
apache benchmarks (apache v13 / apache v20) ; large differences between benchmarking markus1982 Linux - Software 0 02-08-2003 11:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration