LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Current latest Centos is 6.3 https://www.centos.org/; number typo?
 
Old 07-31-2012, 10:40 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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
Location: München
Distribution: Debian, CentOS/RHEL
Posts: 587

Rep: Reputation: 72
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



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

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

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