LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   IP is visible in View page source (https://www.linuxquestions.org/questions/linux-server-73/ip-is-visible-in-view-page-source-4175449928/)

vignesh4sh 02-13-2013 12:06 AM

IP is visible in View page source
 
Hi,
IP is visible in View page source (code) in browser.Ip is visible instead of hostname.
I have checked my apache configuration. Everything is okay.

I have two vhosts
1. example.com
2. examplephp.com

when i hit the example.com and view page source..
Quote:

<html><head></head><frameset border="0" rows="100%,*" cols="100%"
frameborder="no"><frame name="TopFrame"
scrolling="yes" noresize src="http://50.29.135.98/Example/view.jsp"><frame name="BottomFrame" scrolling="no"
noresize><noframes></noframes></frameset></html>
When i hit the examplephp.com and view page source.I dont get ip.Its working good.
But I have issue in example.com only.
How to avoid ip in view source?
I have configured JK_module in example.com
I stucked in this. please give me suggestion.
Thanks

acid_kewpie 02-13-2013 05:24 AM

well that source its YOUR file right? you created it? If you don't want it in there, use a hostname, or don't use an iframe at all.

vignesh4sh 02-13-2013 05:34 AM

Thanks for reply
ya file is created by mine.I have not used iframe, but still getting the IP only. I was stucked for long time.

Even,if I enabled default vhost,ie "It Works" html file. when i hit and view the source code. IP is coming.

If i hit the IP,View page source is coming. But when i use url, Its shows first IPaddress and then i hit the ip. it shows source code.

Can u please give me any suggestion

Thnks


All times are GMT -5. The time now is 12:27 PM.