LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-29-2014, 05:03 AM   #1
Darkcloud98
LQ Newbie
 
Registered: Apr 2013
Posts: 2

Rep: Reputation: Disabled
Linux Redirect websites


Hello,

I am unsure where to place this question. Or what kind of name i should give it.

What is needed to create the following.
we have one server. CentOS 6.4
lets call it "serverA"

On serverA is running apache2 , tomcat & drupal.
all websites.

What i want to do, is create multiple DNS records to serverA
alpha.be beta.be, zeta.be (all linked to the ip adres of serverA)

Now i want to be able to direct each DNS to a specific site.
Alpha.be > serverA/alpha
Beta.be > server1:8080/beta


how is this done?
What i already have is a reverse proxy.
but as far as i have been able to check. It works after the DNS link
"/beta/ http://localhost:8080/beta/" resulting that
beta.be/beta/ wil redirect to the beta site.
but if i remove the "/beta" from the url. it redirects to the standard apache2 homepage again.

this i want to prevent. I want each DNS to direct to the specific sites.

how should this be done?
 
Old 01-29-2014, 05:06 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,473

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Why do you want to direct different sites to different ports? Surely normal Name Based Virtual hosting would suit your needs?
 
Old 01-29-2014, 05:17 AM   #3
Darkcloud98
LQ Newbie
 
Registered: Apr 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TenTenths View Post
Why do you want to direct different sites to different ports? Surely normal Name Based Virtual hosting would suit your needs?
most ports are the same.
in the future there will be multiple websites host on tomcat.

thus. gamma.com > serverA:8080/gamma/
fie.com > serverA:8080/fie/
test.com > serverA:8080/test/

since this is possible with the Name based virtual hosting.
i think i found what i needed.
 
  


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
How To Unblock Websites In Linux jessica1410 Linux - General 3 12-23-2011 03:38 PM
What linux is good for websites? Fasn8n Linux - General 4 03-02-2006 06:32 PM
Whitelisting websites in linux OneSeventeen Linux - Networking 1 12-08-2005 11:29 AM
Redirect websites to another squid server. neos Linux - Networking 0 06-27-2005 05:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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