LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-11-2004, 10:16 PM   #1
BrettPower
Member
 
Registered: Aug 2003
Location: Daytona Beach, FL
Distribution: Gentoo and FC3
Posts: 65

Rep: Reputation: 15
Apache question


Since I am using Apache to host my web sites, and I am using virtual servers, the IP address of my cable modem always remains in the address bar. Can I change this?

When a user goes to www.brettpower.com, I want www.brettpower.com to be visible in the address bar, not the IP address.

Make sense?
 
Old 03-12-2004, 01:22 AM   #2
shubb
Member
 
Registered: Oct 2003
Location: San Francisco
Distribution: Slackware 13.37
Posts: 150

Rep: Reputation: 16
First of all, you are doing some re-directing from one server to another server. When you do a wget on www.brettpower.com, you see the following.

wget www.brettpower.com
--23:03:50-- http://www.brettpower.com/
=> `index.html'
Resolving www.brettpower.com... done.
Connecting to www.brettpower.com[69.64.33.37]:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://24.170.171.75/~brett/ [following]
--23:03:50-- http://24.170.171.75/%7Ebrett/
=> `index.html'
Connecting to 24.170.171.75:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 125 [text/html]

100%[=============================================================>] 125 122.07K/s ETA 00:00

23:03:50 (122.07 KB/s) - `index.html' saved [125/125]

The part where it says Location with the 24.x IP address, means that the user is being re-directed to another server for a new web page. Is the 24 address your server, that you are re-directing from another web server? If you are re-directing from one server to another server, then you need to have a DNS resolvable hostname to re-direct to. The reason the browser is showing the IP addres, is because that is where the original web page points to.
 
Old 03-13-2004, 08:18 AM   #3
BrettPower
Member
 
Registered: Aug 2003
Location: Daytona Beach, FL
Distribution: Gentoo and FC3
Posts: 65

Original Poster
Rep: Reputation: 15
Okay. So I just need to setup a DNS server in order for this to work.

Guess I will start on that right now. If anybody has any good tips to make this easy and quick, let me know. Never done this before.

(I am using Webmin to do this remotely)
 
Old 03-13-2004, 09:53 AM   #4
jerky
Member
 
Registered: Jul 2003
Distribution: RH 7.3 , RH9,RHEL,FC
Posts: 38

Rep: Reputation: 15
webserver

this is more likely a problem with your virtualhost setting in your httpd.conf , i assume you have two domain names registered to one ip


www.brettpower.com ---> 24.x.x.x
www.whatever.com ---> 24.x.x.x

NameVirtualhost *
<VirtualHost * >
ServerAdmin stuart@jamesnet.ca
DocumentRoot /www
ServerName www.brettpower.com
ServerAlias brettpower.com
</VirtualHost>

<VirtualHost * >
ServerAdmin stuart@jamesnet.ca
DocumentRoot /www1
ServerName www.whatever.com
ErrorLog logs/linux.net.error_log
TransferLog logs/linux_access_log
ServerAlias whatever.com
</VirtualHost >


as long as you have your dns pointing to the correct ip, when you access that hostname your dns server points to that ip , ie your

Non-authoritative answer:
www.brettpower.com canonical name = wfb.zoneedit.com.
Name: wfb.zoneedit.com
Address: 216.98.141.250
Name: wfb.zoneedit.com
Address: 69.64.33.37


currently these nameservers do not have a domain server running, port 53 is closed. You must contact your dns registrar and have them point your name servers to your computer running a dns server with an open dns port udp/tcp.

Last edited by jerky; 03-13-2004 at 09:55 AM.
 
  


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
Question - (apache?) pylon42 Linux - General 7 03-23-2005 07:55 AM
Apache Question Sideshow Linux - Networking 6 02-13-2004 05:31 PM
another apache question peteABK Linux - Software 8 05-27-2003 02:58 AM
Apache question plisken Linux - Software 1 02-25-2003 02:40 PM
apache question davsingl67 Linux - Newbie 1 12-11-2002 02:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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