Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



Closed Thread
Apache 2 displays IP instead of "ServerName" directive
Old 11-06-2008, 01:15 AM Apache 2 displays IP instead of "ServerName" directive
Junior Talker

Posts: 2
Trades: 0
I've had a personal webserver running for awhile and just noticed that every link contains my external ip instead of my url which is set in httpd.conf's servername as such:
Code:
ServerName noplacelikenowhere.com
I use No-ip.com's port redirect and am suspecting it's got something to do with it. (Bypassing blocked port 80.) I've got it set just to redirect, and pinging shows the right ip (same as apache is displaying.)

Is there some sort of rewrite rule I can use to FORCE noplacelikenowhere.com into url's?

Many thanks in advance.
grwhfl is offline
View Public Profile
 
 
Register now for full access!
Old 11-06-2008, 05:46 AM Re: Apache 2 displays IP instead of "ServerName" directive
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,528
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Use absolute addressing for your links rather than relative addressing.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
View Public Profile Visit chrishirst's homepage!
 
Old 11-06-2008, 12:42 PM Re: Apache 2 displays IP instead of "ServerName" directive
Junior Talker

Posts: 2
Trades: 0
I do that where possible but most php doesn't seem to rely on it heh.

Guess I'll just have to figure it out per script.

Thanks.
grwhfl is offline
View Public Profile
 
Closed Thread     « Reply to Apache 2 displays IP instead of "ServerName" directive
 

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.12002 seconds with 12 queries