LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-05-2004, 11:13 AM   #1
TKS
Member
 
Registered: Dec 2003
Location: NC, USA
Distribution: Slackware, VectorLinux, Smoothwall, and PCLinuxOS
Posts: 40

Rep: Reputation: 15
vhosts problem


Hello


I've been searching forums and how-to documentation for about 2 days and can't find a solution that works for my problem.

I've been working on vhosts with apache 1.3...I've got one setup just fine but the other will NOT set up for any reason. My question is this:

Slackware comes with default access to /var/www/htdocs and this handles requests from any address incoming to *:80

Does this mess up virtual hosting? For example...lets say I wanted to have two webpages up and running...

www.example.org
forum.example.org

I'd edit my httpd.conf (according to apache's website) like this:

Code:
<VirtualHost *:80> 

ServerName www.example.org 
DocumentRoot /var/www/htdocs 
ServerAlias www.example.org example.org 
</VirtualHost> 

<VirtualHost *:80> 

ServerName forum.example.org 
ServerAlias forum.example.org 
DocumentRoot /var/www/htdocs/forum 

</VirtualHost>
Implied in the code above is the example.org domain as a valid registered domain with DNS servers (for both forum.example.org and example.org bound to current IP address)

So I have example.org registered as an Arecord with my dns server...Do I need to set up forum.example.org as a CNAME? As of now I have it set to Arecord as well.

Do I need the BindAddress flag enabled within httpd.conf? I've tried it both enabled and disabled with no fix...set it to example.org when enabled.


I originally thought that the default settings for apache...where /var/www/htdocs is the document root...was colliding with my vhost. Can this be the case? Has anyone else run into this problem?


Can anyone shed some light on the subject?

TKS
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vhosts !? skate Linux - Software 1 08-13-2003 04:23 PM
Sendmail with vhosts problem shizzilla Linux - Software 12 05-08-2003 02:58 AM
Vhosts on RH 8.0 - Apache 2.0.40 Drogo Linux - Software 5 02-06-2003 11:28 PM
vhosts h8r Linux - Networking 3 01-18-2003 09:24 AM
vhosts h8r Linux - General 3 01-18-2003 09:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:48 PM.

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
Open Source Consulting | Domain Registration