LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 11-25-2005, 09:54 PM   #1
kwickcut
Member
 
Registered: Nov 2004
Posts: 136

Rep: Reputation: 20
Lamp Server


hello all!! i am running mandrake 10.0 offical powerpack and have a lamp server running with one site on it, now i want to add another. i have the apache Vhosts.conf configured as such. is this correct?


Code:
NameVirtualHost outside ip


<VirtualHost 192.168.1.xxx:80>
DocumentRoot /var/www/html/site1
ServerName www.site1.com
<Directory "/var/www/html/site1.com">
allow from all
Options +Indexes
</Directory>
ServerAlias site1.com
</VirtualHost>

NameVirtualHost 192.168.1.xxx


<VirtualHost 192.168.1.xxx:80>
DocumentRoot "/home/site2"
ServerName www.site2.com
<Directory "/home/site2">
allow from all
Options +Indexes
</Directory>
</VirtualHost>
with this setup i see the main site when uesing site1.com or site2.com. what i need is to be able to point the second name so it sees the second site folder not the first.. now i have read that i need 2 ip to do this the outside ip and an internal ip. with that said i beleave that i need to have 2 nic cards? if so how do i go about setting this up? i have 2 nic cards installed now and need know what to do next thanks



kwick
 
Old 11-25-2005, 10:02 PM   #2
iggep
Member
 
Registered: Sep 2005
Location: Virginia Beach, VA
Posts: 48

Rep: Reputation: 15
You do not need 2 NICs, or more than one IP. I'd recommend that you visit the Apache webiste (http://httpd.apache.org/docs/2.0/) and read up on the documentation a bit before you proceed. That link is to the 2.x documentation. if you're not running 2.x, then browse to the 1.3.x docs instead.
 
  


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
a lamp server like an appliance stlshawn Linux - Newbie 7 10-09-2005 10:28 PM
My LAMP server (on a laptop) runs very slooow guarriman Linux - General 2 05-25-2005 07:35 AM
setting up a LAMP server in Slackware 10.0 yolopollo Slackware 2 07-23-2004 03:32 PM
on-x Rx linux as a LAMP server violentpurrr Linux - Software 0 06-26-2004 12:33 AM
LAMP with a new server, debian mix_master_mike Linux - General 4 11-17-2003 11:30 AM

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

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