LinuxQuestions.org
Visit Jeremy's Blog.
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 11-23-2010, 02:15 PM   #1
firehak
LQ Newbie
 
Registered: Dec 2009
Location: North Canton, OH
Distribution: Fedora
Posts: 13

Rep: Reputation: 0
Turnkey LAMP stack virtual host issues


It's been so long since I've dealt with virtual hosts that I can't seem to get things working no matter what tutorials I look at. My web host just screwed me over today, so I moved my 2 domains to my Turnkey virtual appliance, and I am trying to host 2 web sites from one IP. My issue is that both animepwn.net and stephansimon.net both point to the animepwn folder. The 2 virtual hosts appear in this order, and it seems like the first takes over even when I enter another address.

Handles the name-based server animepwn.net on address *.
Address Any
Port Any Server Name animepwn.net
Document Root /home/stephan/www.animepwn.net

Handles the name-based server stephansimon.net on address *.
Address Any
Port Any Server Name stephansimon.net
Document Root /home/stephan/www.stephansimon.net

Is there something I'm missing? I registered the A records on my domain registrar, and everything seems to be working, it just always takes the first host in the list.

EDIT: I don't see a place to delete this thread, so I'll just edit and mark solved. I needed to enable the vhost_alias module.

Last edited by firehak; 11-23-2010 at 04:36 PM.
 
Old 11-25-2010, 06:50 AM   #2
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally Posted by firehak View Post
EDIT: I don't see a place to delete this thread, so I'll just edit and mark solved. I needed to enable the vhost_alias module.
Thanks for posting the solution. That's the LQ spirit. However, you are missing one of the points of LQ: providing an archive of answers. We answer your questions not just to help you, but anyone else w/ a similar problem. Note that when I started writing this post this thread had 65 views, that's potentially 65 people looking for the same solution.

A suggestion for the future: If you answer your own question, put the solution in a separate post. This does 2 good things:
  • It generates e-mail to anyone who subscribed to either the thread or the forum.
  • It avoids the creation of oxymoronic 0-reply solved threads.
 
Old 11-26-2010, 12:00 AM   #3
firehak
LQ Newbie
 
Registered: Dec 2009
Location: North Canton, OH
Distribution: Fedora
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by archtoad6 View Post
Thanks for posting the solution. That's the LQ spirit. However, you are missing one of the points of LQ: providing an archive of answers. We answer your questions not just to help you, but anyone else w/ a similar problem. Note that when I started writing this post this thread had 65 views, that's potentially 65 people looking for the same solution.

A suggestion for the future: If you answer your own question, put the solution in a separate post. This does 2 good things:
  • It generates e-mail to anyone who subscribed to either the thread or the forum.
  • It avoids the creation of oxymoronic 0-reply solved threads.
I'm sorry. I was thinking of posting the answer in another post, but I figured somebody would say something about double posting like almost any other forum out there. For as long as I've had my account, I'm just now starting to get active into Linux and the community. I hope to make more use of this site, and will definitely continue to post any answers I find.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: TurnKey Linux launches private beta of TurnKey Hub, a new simplified cloud depl LXer Syndicated Linux News 0 06-06-2010 03:00 PM
LXer: Develop PHP Web Applications with NetBeans, VirtualBox and Turnkey LAMP Applian LXer Syndicated Linux News 0 08-27-2009 04:10 AM
LXer: Develop PHP Web Applications with NetBeans, VirtualBox and Turnkey LAMP Applian LXer Syndicated Linux News 0 08-25-2009 01:10 PM
LXer: In collaboration with Microsoft, TurnKey Linux to relaunch as TurnKey Windows LXer Syndicated Linux News 1 04-01-2009 10:11 AM
LAMP with Debian Etch on a Virtual Machine & Leopard as host riganta Linux - Server 4 12-18-2008 10:35 AM

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

All times are GMT -5. The time now is 09:54 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