LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   managing DNS (https://www.linuxquestions.org/questions/fedora-35/managing-dns-517422/)

clpl1980 01-08-2007 09:40 AM

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!

gizza23 01-08-2007 10:40 AM

You want to research "Apache name based virtual hosts."

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


All times are GMT -5. The time now is 12:32 AM.