LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 09: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, 10: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



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 05:08 PM
Managing Wi-Fi ripmaster Linux - Wireless Networking 9 06-07-2005 08:12 PM
managing users alcek2004 Linux - Newbie 2 09-20-2004 09:43 AM
Managing messages Gomi Linux - Networking 1 09-12-2003 03:47 AM
Managing DNS under DHCP slave GAVollink Linux - Networking 1 07-01-2002 01:32 PM

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

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