petermarcus: (Default)
petermarcus ([personal profile] petermarcus) wrote2002-09-13 10:04 am

(no subject)

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

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

[identity profile] robont.livejournal.com 2002-09-13 07:47 am (UTC)(link)
[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>

[identity profile] luker.livejournal.com 2002-09-14 08:50 am (UTC)(link)
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.

[identity profile] luker.livejournal.com 2002-09-14 09:34 am (UTC)(link)
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.