petermarcus: (Default)
[personal profile] petermarcus
I need some help from the hive mind of techies out there ;)

I have Apache 2.x running on a Linux server. The server isn't in DNS yet, though it's being forwarded from my domain host at Yahoo.

If I put the IP of the server in my address bar, my temp page comes up, but the IP address is still in the address bar. What I want to do is put my domain name www.URingMe.com in the address bar. I've changed the following options in the httpd.conf file:

ServerName www.URingMe.com:80
UseCanonicalName On

< VirtualHost 64.221.95.91 >
ServerName www.URingMe.com
UseCanonicalName On
< / VirtualHost >

Stopped the apachectl and started it again, but I'm still getting IP addresses in the address bar, not the ServerName. Any ideas?

It's at http://64.221.95.91

Thanks!

hmmm

Date: 2002-09-13 07:33 am (UTC)
From: [identity profile] corto.livejournal.com
I shall sick the smartest guy I know on this... :D

Date: 2002-09-13 07:47 am (UTC)
From: [identity profile] robont.livejournal.com
[Error: Irreparable invalid markup ('<virtualhost *>') in entry. Owner must fix manually. Raw contents below.]

<VirtualHost *>
ServerName www.example.net
ServerAlias example.com
Redirect permanent / http://www.example.com/
</VirtualHost>

Date: 2002-09-13 07:50 am (UTC)
From: [identity profile] robont.livejournal.com
< VirtualHost * >
ServerName www.URingMe.com
ServerAlias 64.221.95.91
Redirect permanent / http://64.221.95.91/
< /VirtualHost >

woops... take the spaces out

Re:

Date: 2002-09-13 08:06 am (UTC)
From: [identity profile] petermarcus.livejournal.com
Hmmm. I get "redirection limit exceeded" and it cancels out.

Date: 2002-09-13 08:20 am (UTC)
From: [identity profile] robont.livejournal.com
Well then I'm done... IIS I could help you with, but not this linux shit ;-)

Re:

Date: 2002-09-13 08:37 am (UTC)
From: [identity profile] petermarcus.livejournal.com
Heh, thanks anyway ;)

Date: 2002-09-14 08:50 am (UTC)
From: [identity profile] luker.livejournal.com
Hey [livejournal.com profile] corto sent me over.

Couple of things to check.
~ do you have a "NameVirtualHost 64.221.95.91" statement
~ also I have never been able to get
[Error: Irreparable invalid markup ('<virtualhost *>') in entry. Owner must fix manually. Raw contents below.]

Hey <lj site="livejournal.com" user="corto"> sent me over.

Couple of things to check.
~ do you have a "NameVirtualHost 64.221.95.91" statement
~ also I have never been able to get <VirtualHost *> to work so probably stay away from this.
~ the SeverName directive MUST be a valid DNS name so use the IP
~ Also you need NameVirtualHost and VirtualHost only if you will have more than one domain hosted by this machine.

All in all it is very difficult to do anything without a valid DNS entry. Let me keep digging throughout the day and I'll get back to you. Feel free to email me on this.

Date: 2002-09-14 09:34 am (UTC)
From: [identity profile] luker.livejournal.com
One more thing.

put your www.uringme.com in your /etc/hosts like this
64.221.95.91 www.uringme.com

append to the end of the line whatever the real hostname is. You can also append the www.uringme.com to the end of the line if it already exists.

Re:

Date: 2002-09-14 09:45 am (UTC)
From: [identity profile] petermarcus.livejournal.com
I was going to ask you about that....I do have it that way in the hosts file, and I wondered if that would bypass DNS. Doesn't look like it.

I may just have to get a DNS entry for that domain. Hmm. I'll try the other suggestions, though.

Thanks for the help!

Profile

petermarcus: (Default)
petermarcus

January 2012

S M T W T F S
12 34567
891011121314
15161718192021
22232425262728
293031    

Style Credit

Expand Cut Tags

No cut tags
Page generated Sep. 1st, 2025 11:14 pm
Powered by Dreamwidth Studios