LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   CentOS 6.5 single server multiple domains? (http://www.linuxquestions.org/questions/linux-server-73/centos-6-5-single-server-multiple-domains-4175419527/)

LAN-Dominator.nl 07-31-2012 04:40 AM

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!

acid_kewpie 07-31-2012 04:57 AM

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.

chrism01 07-31-2012 08:45 PM

Current latest Centos is 6.3 https://www.centos.org/; number typo?

John VV 07-31-2012 10:40 PM

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

ilesterg 07-31-2012 10:56 PM

Quote:

Originally Posted by chrism01 (Post 4742624)
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.


All times are GMT -5. The time now is 09:24 AM.