LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-02-2003, 05:51 PM   #1
Tenchi147
LQ Newbie
 
Registered: May 2003
Location: Horsham, PA, USA
Distribution: Slackware
Posts: 12

Rep: Reputation: 0
Apache and DNS


I just bought a domain name from godaddy.com and I am telling it to forward the url that I bought from godaddy to my ip address. When people type in the address (terminalevil.net (my friend thought it up..)) it forwards it to show http://myipaddress. Is there a way I can get apache to change my ip address to say my domain name when it is forwarded to my ip?
 
Old 06-02-2003, 05:55 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
You need to have your registrar (godaddy.com) to point your domain to a valid DNS server so it redirects you and translates the name www.terminalevil.net to IP so it will display as www.terminalevil.net
And also specifying your domain or server name as terminalevil.net in your httpd.conf file on your server.
 
Old 06-02-2003, 06:08 PM   #3
Tenchi147
LQ Newbie
 
Registered: May 2003
Location: Horsham, PA, USA
Distribution: Slackware
Posts: 12

Original Poster
Rep: Reputation: 0
Godaddy won't let me use the DNS servers because it's set up as a forwarding address. Also, I messed up..the address is http://terminalenemy.net. I was told to set it up as a forwarding address.
 
Old 06-02-2003, 08:31 PM   #4
Tenchi147
LQ Newbie
 
Registered: May 2003
Location: Horsham, PA, USA
Distribution: Slackware
Posts: 12

Original Poster
Rep: Reputation: 0
Argh this is driving me crazy
 
Old 06-02-2003, 08:41 PM   #5
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
What is your "ServerName" in your httpd.conf?

You can set it up to be your fullyqualified domain name and then just use VirtualHost directives in your httpd.conf.

ie:
<VirtualHost *>
ServerName www.terminalenemy.net
DocumentRoot /path/to/htmldocs
</VirtualHost>

You can also place your individual logfiles and other fun stuff within each VirtualHost container.
 
Old 06-02-2003, 09:03 PM   #6
Tenchi147
LQ Newbie
 
Registered: May 2003
Location: Horsham, PA, USA
Distribution: Slackware
Posts: 12

Original Poster
Rep: Reputation: 0
the ServerName is terminalenemy.net and where would I put the virtual hosts flags? Below where is says NameVirtualHosts * ?
 
Old 06-02-2003, 09:18 PM   #7
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
The authoritative DNS server for your domain needs to have either an A record that points to your IP or a CNAME record that points to the origina name record.

If it has a record for www.terminalenemy.net then you can either name your server as that or just use
<VirtualHost *>
ServerName www.terminalenemy.net
DocumentRoot /path/to/your/htmldocs
</VirtualHost>
 
  


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
apache and dns mikew101 Linux - Software 6 07-05-2003 01:54 AM
DNS with apache SSBN Linux - Networking 1 05-01-2003 01:40 AM
dns or apache ethanchic General 7 02-07-2003 03:20 AM
dns for redhat 8.0 using apache danimaldaisy Linux - Networking 1 12-12-2002 03:33 PM
DNS and Apache! eXor Linux - Newbie 5 10-13-2002 06:29 PM


All times are GMT -5. The time now is 04:48 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration