LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-21-2006, 01:31 PM   #16
Zeno McDohl
Member
 
Registered: Apr 2005
Location: Saratoga, NY
Distribution: Slackware
Posts: 322

Original Poster
Rep: Reputation: 30

Since it brings the subdomains to ServerB, I assume it's fine. The problem is probably in the conf file which is why I asked in the first place.
 
Old 12-21-2006, 01:41 PM   #17
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
Code:
NameVirtualHost *:80

<VirtualHost *:80>
  DocumentRoot "/opt/lampp/htdocs/zeno"
  ServerName zeno.biyg.org
    <Directory "/opt/lampp/htdocs/zeno">
        allow from all
        Options +Indexes
    </Directory>
</VirtualHost>

<VirtualHost *:80>
  DocumentRoot "/opt/lampp/htdocs/fwarlords"
  ServerName fwarlords.biyg.org
    <Directory "/opt/lampp/htdocs/fwarlords">
        allow from all
        Options +Indexes
    </Directory>
</VirtualHost>
That ought to do the trick.

Note: this is trickykid's example with one or two lines changed.

ETA: The first virtual server defined is the default.

Last edited by phil.d.g; 12-21-2006 at 01:42 PM.
 
Old 12-21-2006, 02:59 PM   #18
Zeno McDohl
Member
 
Registered: Apr 2005
Location: Saratoga, NY
Distribution: Slackware
Posts: 322

Original Poster
Rep: Reputation: 30
Thanks, I had to change a bit but that worked. Thanks again.
 
  


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
Virtual Host issue with apache gauge73 Linux - Networking 1 07-12-2005 02:00 PM
Apache Virtual Host problem - DNS or DHCP issue? costrevs Linux - Software 16 03-23-2005 07:50 AM
Apache 2 Virtual host eckertc1 Linux - Software 6 03-22-2005 09:58 PM
Apache 2.0 Virtual Host? w0lfeyes Linux - Networking 1 05-03-2004 03:09 PM
Virtual Host Redirect Issue DigiDave Linux - Software 1 10-23-2003 01:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:33 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
Open Source Consulting | Domain Registration