LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-14-2009, 03:09 AM   #1
29t88
Member
 
Registered: Jan 2009
Distribution: CentOS 5.3
Posts: 62

Rep: Reputation: 17
Deploying Multiple Intranet Websites?


Hello,
I am a newbie to modern linux only ever ran old school stuff XD
Lately I Have Decided To Upgrade To CentOS 5.3, Ive Set Up Apache HTTPD Server But Theres Only One Problem,
I closed the port 80 On my router (SO Its Just A Intranet Site) Thats What I Want, But i want to run multiple intranet sites from this server,
If possible i want to be able to type in address1 or something for 1 site and address2 or something for the second site, Also, If i ever decided to have these sites opened, i would buy a domain and Link it to it, but i only have 1 ip address how could i have multiple domains going to different Sites/Directives
Virtual Hosts I Know, I Would Have To Start Using Them, I Honestly Am Not To Familiar With Virtual Hosts, So Any Help Would Be GREAT
Cheers Tobi
 
Old 09-14-2009, 03:20 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
You need virtual hosts
Take a look at
http://www.debian-administration.org/articles/412
 
Old 09-14-2009, 04:06 AM   #3
29t88
Member
 
Registered: Jan 2009
Distribution: CentOS 5.3
Posts: 62

Original Poster
Rep: Reputation: 17
Hmm Thanx, Slow Internet Where I Am Right Now waiting for it to load, I would also need ALOT of help configuring DNS.... Any help would be good!

Thats what i love about the community here, People are always willing to help
 
Old 09-14-2009, 03:48 PM   #4
29t88
Member
 
Registered: Jan 2009
Distribution: CentOS 5.3
Posts: 62

Original Poster
Rep: Reputation: 17
Repo i did as that said to, i created a virtual host and virtual domain + IP Of 127.0.0.2 Linked to example.example (Seems its only for this computer or my network)
For this computer im using example.example ill configure DNS Later.
my names tobi
I link the Virtual Host Document Path to:
/home/Tobi/public_html
(Thats case sensitive)
I have a index.html in there This is the contents seems its just a test
Code:
<html>
<head>
<title> Hello World Tobi Test</title>
</head>
<body>
<H1> HELLO WORLD</h1></body></html>
Anyways
I Ran this command on the directory and the index file
Chmod 777 public_html
Chmod 777 index.html
Had no problem with that But then i view example.example in firefox and get Forbidden?
 
Old 09-14-2009, 11:12 PM   #5
Smartpatrol
Member
 
Registered: Sep 2009
Posts: 196

Rep: Reputation: 38
...

Last edited by Smartpatrol; 03-11-2010 at 09:25 PM.
 
Old 09-15-2009, 12:51 AM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,349

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
As you've got Centos 5.3, this Deployment Guide has lots of howto/explanations http://www.linuxtopia.org/online_boo...ion/index.html
 
  


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
One server, multiple domains/websites. jef3189 Linux - Server 4 04-04-2009 11:21 PM
Multiple Websites - 1 server metallica1973 Linux - Server 8 06-16-2008 11:18 AM
Deploying sudo to multiple hosts rohang Linux - General 1 12-13-2005 10:21 PM
multiple file upload for websites? sohmc Linux - Networking 4 02-23-2005 07:43 AM
How to configure multiple websites on one PC? <Ol>Origy Linux - Networking 8 08-16-2004 07:16 AM

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

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