LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-27-2006, 08:02 PM   #1
SpiDeRBlTE
LQ Newbie
 
Registered: May 2006
Posts: 5

Rep: Reputation: 0
Apache: Vhosts Issue


I cant actually post the code until I have posted three times, so here it goes... Post 1
 
Old 05-27-2006, 08:03 PM   #2
SpiDeRBlTE
LQ Newbie
 
Registered: May 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Lets see if this will count as post 2... Don't worry the problem is coming up in just a second. Post 2
 
Old 05-27-2006, 08:03 PM   #3
SpiDeRBlTE
LQ Newbie
 
Registered: May 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Forum trolling sux. This is post #3 YAY, problem after this post.
 
Old 05-27-2006, 08:04 PM   #4
SpiDeRBlTE
LQ Newbie
 
Registered: May 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Sorry about the retardedness above. Thanks for any help though.

I currently have Mandriva 10 Powerpack + on my system, and I am trying to set up a virtual host that will allow for three different domain names (www.mydomain.com, www.mydomain.net, www.mydomain.org) to work out of three different folders. I have previously had this working with sub domains ( sitea.mydomain.com, siteb.mydomain.com) but now when I try it with the three different domains, they all show which ever is listed first in the Vhosts.conf.

Code:
NameVirtualHost www.mydomain.com
<VirtualHost *>
DocumentRoot /var/www/html/mdcom
ServerName www.mydomain.com
ServerAlias www.mydomain.com
ServerAdmin spider@mydomain.com
ScriptAlias /cgi-bin/ /var/www/html/mdcom/cgi-bin/
ScriptAlias /cgi-all/ /var/www/cgi-bin/
ScriptAlias /cgi-shared/ /var/cgi-bin/shared/
</VirtualHost>

NameVirtualHost www.mydomain.net
<VirtualHost *>
DocumentRoot /var/www/html/mdnet
ServerName www.mydomain.net
ServerAlias www.mydomain.net
ServerAdmin spider@mydomain.net
ScriptAlias /cgi-bin/ /var/www/html/mdnet/cgi-bin/
ScriptAlias /cgi-all/ /var/www/cgi-bin/
ScriptAlias /cgi-shared/ /var/cgi-bin/shared/
</VirtualHost>

NameVirtualHost www.mydomain.org
<VirtualHost *>
DocumentRoot /var/www/html/mdorg
ServerName www.mydomain.org
ServerAlias www.mydomain.org
ServerAdmin spider@mydomain.org
ScriptAlias /cgi-bin/ /var/www/html/mdorg/cgi-bin/
ScriptAlias /cgi-all/ /var/www/cgi-bin/
ScriptAlias /cgi-shared/ /var/cgi-bin/shared/
</VirtualHost>
I have tried many variations of this from strictly copying the built in example, to samples I seen posted everywhere, to my own crazy versions. I have tried replacing the *'s with the domain name, nothing seems to work. I either get the default "everything's working" page or all three will show up as which ever is listed first.

All three domains are actually named exactly the same, however one ends in .com, another .net, and last .org... I am acutally using each of the three as different sites for different purposes.

Any help would be greatly appreciated. Please contact me back at RandyBerg@nc.rr.com or Randy.Berg@geeksquad.com
 
Old 05-27-2006, 09:23 PM   #5
SpiDeRBlTE
LQ Newbie
 
Registered: May 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Sorry, I am an idiot.. I found another post that led to a helpful site: http://httpd.apache.org/docs/1.3/vhosts/examples.html

This page answered my questions and I got it working without issue. Even though my question wasn't answered by a reply, this was still the most helpful forum I have found.

My thanks to the creators.
 
  


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
Setting up vhosts in apache 1.3.33 Erik Thorsson Debian 2 01-31-2005 09:46 PM
Help with Vhosts in apache please. GEEF Linux - Software 2 10-29-2004 07:18 PM
apache 2.0.44 vhosts sqn Slackware 4 06-19-2003 12:54 AM
apache vhosts question sqn Linux - Networking 0 04-01-2003 04:27 PM
Vhosts on RH 8.0 - Apache 2.0.40 Drogo Linux - Software 5 02-06-2003 11:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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