LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Deploying Multiple Intranet Websites? (https://www.linuxquestions.org/questions/linux-server-73/deploying-multiple-intranet-websites-755007/)

29t88 09-14-2009 03:09 AM

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

repo 09-14-2009 03:20 AM

You need virtual hosts
Take a look at
http://www.debian-administration.org/articles/412

29t88 09-14-2009 04:06 AM

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 :)

29t88 09-14-2009 03:48 PM

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?

Smartpatrol 09-14-2009 11:12 PM

...

chrism01 09-15-2009 12:51 AM

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


All times are GMT -5. The time now is 03:26 PM.