LinuxQuestions.org
Review your favorite Linux distribution.
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 07-31-2012, 04:40 AM   #1
LAN-Dominator.nl
Member
 
Registered: Sep 2006
Location: Hendrik Ido Ambacht, Zuid-Holland, Nederland, Europa
Distribution: Ubuntu 12.04; CentOS 6.5
Posts: 137

Rep: Reputation: 15
Question CentOS 6.5 single server multiple domains?


Hi there,

I'm new to CentOS 6.5
I have the server installed with Apache, MySQL and PHP.

Now i have 2 domain-names:
MrEaz.com and MrEaz.nl

Now how do i setup the single server to redirect each of the domain onto it's own domain-directory.

And also, how do i create pages on the CentOS, because i'm only familiar with the Desktop-editions of Linux and Unix (Ubuntu, OpenSuse, Solaris)

If anybody could help me out, thnq alot!
 
Old 07-31-2012, 04:57 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,386

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
just have a google for a virtual hosting guide for apache, that will tell you all you need to know.

and you can create pages however you like. CentOS can run anything Ubuntu can. I would recommend not writing them on the server though, and uploading them from a dev machine (your own laptop etc.) over scp or such like.
 
Old 07-31-2012, 08:45 PM   #3
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,261

Rep: Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028
Current latest Centos is 6.3 https://www.centos.org/; number typo?
 
Old 07-31-2012, 10:40 PM   #4
John VV
Guru
 
Registered: Aug 2005
Posts: 12,839

Rep: Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709
vhost
it is in the Apache docs
http://httpd.apache.org/docs/2.4/
http://httpd.apache.org/docs/2.4/vhosts/

Quote:
And also, how do i create pages on the CentOS, because i'm only familiar with the Desktop-editions of Linux and Unix (Ubuntu, OpenSuse, Solaris)
CentOS IS a linux distro

and why would a web TEXT file be different that any other text file?
a text file is a text file

Last edited by John VV; 07-31-2012 at 10:44 PM.
 
Old 07-31-2012, 10:56 PM   #5
ilesterg
Member
 
Registered: Jul 2012
Distribution: CentOS, Debian, Oracle Linux, AIX
Posts: 289

Rep: Reputation: 22
Quote:
Originally Posted by chrism01 View Post
Current latest Centos is 6.3 https://www.centos.org/; number typo?
I thought it was just me.

And yes, vhost is the way to go.
 
  


Reply

Tags
centos, domains, multiple, server, single


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
[SOLVED] Apache VirualHost multiple domains single IP zuessh Linux - Software 3 01-12-2010 09:16 AM
Multiple emails accounts(with different from domains) on multiple domains on 1 server locoputo Linux - Server 0 04-12-2009 06:29 PM
Multiple domains names - Single machine jduckett01 Linux - Networking 3 09-18-2006 05:09 AM
multiple domains on a single m/c for sendmail p_test Linux - Networking 1 04-26-2006 12:45 PM
Can I use a single Samba server for multiple domains? help321 Linux - Software 0 08-11-2004 05:20 AM


All times are GMT -5. The time now is 01:20 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration