website showing ipaddress
i created a apache web server and hosted website in it , website is working fine but when resolving it shows ip address.
Please tell me how i can avoid it. these are the details: Server : RHEL5 port forwarding : port 80 has been forwarded. Server is having public ip address. |
In your index.html file you put a <title> in the <head> section. Something like
Code:
<head> Or, in your httpd.conf file give the server a name: Code:
ServerName name.what:80 |
i have done all u suggested but nothing has changed ,
when i type my website name from browser (cypherlogics.com) , and press enter it shows the content but in address bar it shows ip address instead of website name |
Well, yup, it does show the address.
Your page source is Code:
<html> Code:
<html> Code:
ServerName cypherlogis.com:80 Hope the helps some. |
Web browsers display the title in a window’s title bar when the window is open, and in the task bar when the window is minimized. The title has nothing to do with the URL but severname is most likely the problem.
Check your httpd.conf. My first guess is if you have the directive UseCanonicalName set to on the URL will be whatever is set for the servername. If off whatever is supplied by the client. If no server name is defined the default AFAIK is the IP address. |
Here's the default ServerName section of httpd.conf:
Code:
# Code:
ServerName www.cypherlogics.com:80 As michaelk suggests, the default setting for UseCanonicalName is Code:
# Don't forget to stop and restart HTTPD (the daemon) -- and, when you connect you might want to clear your browser's cache (or "force reload the page"); sometimes the browser cache can trip you up even though you've fixed the problem you won't see it without a force reload or cache clear. Hope this helps some. |
No friends i tried putting usecononicaName but did'nt work out , i tried changing my html file also but no solution.
i already mentioned that i have port forwarded 80 in my router i think it is the problem but without port forwarding site will not open because the router has a dhcp pool for local systems. what i mean is my router has public ip but my servers address is dhcp ipaddress. |
All times are GMT -5. The time now is 10:22 AM. |