LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 01-08-2007, 10:40 AM   #1
clpl1980
Member
 
Registered: Dec 2006
Posts: 32

Rep: Reputation: 15
managing DNS


Dear Sirs,

run an Apache server with Fedora Core 5 installed.

It's connected to the internet this way: there is a router with a static IP which translates all incoming traffic to the server.

A domain is associated (www.myserver.com) to the static IP.

If I connect to www.myserver.com, I see the web pages stored in my /var/www/html directory.
I bought a new domain www.myserver.co.uk, it points to my IP.

Is there a way to tell the server to connect each domain to a certain directory?
What settings should I edit?

For example:
www.myserver.com shows local folder /var/www/html
www.myserver.co.uk shows local folder /var/www/html2

Thank you, everybody!
 
Old 01-08-2007, 11:40 AM   #2
gizza23
Member
 
Registered: Jun 2005
Location: Chicago, IL, USA
Distribution: Fedora Core, CentOS
Posts: 188

Rep: Reputation: 31
You want to research "Apache name based virtual hosts."

http://httpd.apache.org/docs/1.3/vhosts/name-based.html
 
  


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
Managing dns and httpd for users beside root Dakkar Linux - General 2 08-02-2005 06:08 PM
Managing Wi-Fi ripmaster Linux - Wireless Networking 9 06-07-2005 09:12 PM
managing users alcek2004 Linux - Newbie 2 09-20-2004 10:43 AM
Managing messages Gomi Linux - Networking 1 09-12-2003 04:47 AM
Managing DNS under DHCP slave GAVollink Linux - Networking 1 07-01-2002 02:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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