Author Topic: [Resolved]I can not visit this site directly,so what I will do?  (Read 5542 times)

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: I can not visit this site directly,so what I will do?
« Reply #105 on: March 11, 2012, 08:48:10 AM »
julianxu,     
Try this image hosting site:     
http://myphotos.mypclinuxos.com/     

Online Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11597
  • ----IOFLU----
Re: I can not visit this site directly,so what I will do?
« Reply #106 on: March 11, 2012, 12:22:41 PM »
julianxu:

I notice the location bar on your failed attempt picture shows
Code: [Select]
http://pclinuxos.com
without the www as in;

http://www.pclinuxos.com/

which my location bar shows. Try that link to see if it makes a difference.
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Online The Chief

  • Hero Member
  • *****
  • Posts: 2257
Re: I can not visit this site directly,so what I will do?
« Reply #107 on: March 11, 2012, 02:11:55 PM »
After reading thorough this thread, I started playing around and found an interesting discrepancy. 

If I use the the name of the PCLOS web site (www.pclinuxos.com and let the DNS server figure it out), I get a page that is too large for the display on my laptop.  That is, I have to scroll over to the right to see the link to the forum.  It is scalable with the keys or mouse wheel.

However, if I use the direct IP address (199.231.58.82), I get a page that will fit into the window, no matter the size.  No horizontal scroll bar at all, but the text is smaller.  The content does appear to be the same.  It is scalable with the keys or mouse wheel.

Looks to me like I'm getting two different pages (either different html or different css files), else they would look (and act) the same. 

What else could cause that?   Does the Firefox save the scaling?  I haven't noticed it doing that for other sites.  Or am I  missing something, here?


Doing the same as you did, I get the same display no matter what I enter. IE: either the domain name or the IP address. If the issue you are seeing had to do with the server (configuration) one would expect it to happen for all users. As demonstrated between what you are seeing and that which I am seeing, this can not be the cause of the issue.  Also after looking over the server configuration file I see no way possible that Apache would be able to serve different pages when requesting either the domain name or the IP address.


OK - must be something on my end then.  Just thought it strange.

Retired Senior Chief, Retired Software Engineer, Active GrandPa

Offline YouCanToo

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 5337
  • Location: Lebanon, OR., USA
    • Spreading the word.......
Re: I can not visit this site directly,so what I will do?
« Reply #108 on: March 11, 2012, 03:15:23 PM »
Thanks for posting it. I can't access postimage.org by HTTP from here. I can ping it but HTTP gets "no route to host".

That is too bad!I had changed three picture bed websites to show my snapshots,final I chose postimage.org because I see a Pal(I forget who he is) use this website to show me a picture in our forum,and then no one complaints that he can not see those pictures after I use postimage.org,so I insist on it.What is your suggestion where I post those snapshots to,I would re-upload those snapshots  ::)

and Thank you for your help kjpetrie and thank you other friends!It is my bed time,so I have to leave.see you tomorrow!

You could signup for a free account (for all forum members) on myphotos.mypclinuxos.com




Be sure to visit the NEW Knowledge Base


Linux is user-friendly- it's just picky who its friends are!

Offline YouCanToo

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 5337
  • Location: Lebanon, OR., USA
    • Spreading the word.......
Re: I can not visit this site directly,so what I will do?
« Reply #109 on: March 11, 2012, 03:21:24 PM »
julianxu:

I notice the location bar on your failed attempt picture shows
Code: [Select]
http://pclinuxos.com
without the www as in;

http://www.pclinuxos.com/

which my location bar shows. Try that link to see if it makes a difference.


If the web server is configured properly it would not matter which he typed in

pclinuxos.com
http://pclinuxos.com
www.pclinuxos.com
or http://www.pclinuxos.com

They would all display the same thing.  FWIW the server is configured properly and they all resolve to the proper page.




Be sure to visit the NEW Knowledge Base


Linux is user-friendly- it's just picky who its friends are!

Online Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11597
  • ----IOFLU----
Re: I can not visit this site directly,so what I will do?
« Reply #110 on: March 11, 2012, 03:27:45 PM »
julianxu:

I notice the location bar on your failed attempt picture shows
Code: [Select]
http://pclinuxos.com
without the www as in;

http://www.pclinuxos.com/

which my location bar shows. Try that link to see if it makes a difference.


If the web server is configured properly it would not matter which he typed in

pclinuxos.com
http://pclinuxos.com
www.pclinuxos.com
or http://www.pclinuxos.com

They would all display the same thing.  FWIW the server is configured properly and they all resolve to the proper page.


From here, yes... from China, maybe, maybe not. A lot of weird access stuff gets reported from there, and varies from province to province. 
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 4001
Re: I can not visit this site directly,so what I will do?
« Reply #111 on: March 11, 2012, 05:04:57 PM »
Actually, my own experiment using the hosts file shows the server doesn't care what Host header it receives. My initial thought was a corrupted Host header, possibly due to language/charset issues, but the server is quite happy to serve the correct page against www.gibberish.com as long as the IP address points to it.

However, the OP's latest posts shows he's getting a 403 response and no content at all. I don't know where the page he saw in FF came from, but wget didn't get anything beyond the plain text "2012-03-11 21:45:30 ERROR 403: Forbidden."

The question now is what the server's Error and Access logs show, as that will show whether he reached the server or not.
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf

Offline YouCanToo

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 5337
  • Location: Lebanon, OR., USA
    • Spreading the word.......
Re: I can not visit this site directly,so what I will do?
« Reply #112 on: March 11, 2012, 05:21:00 PM »
I agree with you, it is going to be impossible to go further without knowing what is in the log files.




Be sure to visit the NEW Knowledge Base


Linux is user-friendly- it's just picky who its friends are!

Offline julianxu

  • Full Member
  • ***
  • Posts: 83
Re: I can not visit this site directly,so what I will do?
« Reply #113 on: March 11, 2012, 06:26:18 PM »

Let's just confirm that by changing the command to:

wget -SO- http://www.pclinuxos.com/

This will scroll the whole page out, but you should be able to scroll the terminal back up to the top. We only need to see down as far as the HTML <title>...</title> tag.

The headers you get are different (less detailed) than I get, but I can't tell whether that's because a Forbidden access gets less information or whether it indicates a different machine. However, if Neal or O-P have access to the server logs they should be able to see your Forbidden access in there if it is the same machine.

It is running the same version of Apache.



Hi,morning(in my timing zone)!yesterday night,before I fell asleep,I thinked the
Code: [Select]
wget -SO- http://www.pclinuxos.com/once more,I got your idea,kjpetrie!I think what you wanted is the wrong page's source code of HTML,if I was right,I can get it easily from konqeror-->View-->View Document Source ::)
Do not expect to get more from it,my Pal!I had checked it out by myself,I was disappointed,could you and other friends get more useful informations?Here it is(because it is not too long at all,so I post it fully):
Code: [Select]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<head>
<title>Apache HTTP Server Test Page powered by CentOS</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style type="text/css">
body {
background-color: #fff;
color: #000;
font-size: 0.9em;
font-family: sans-serif,helvetica;
margin: 0;
padding: 0;
}
:link {
color: #0000FF;
}
:visited {
color: #0000FF;
}
a:hover {
color: #3399FF;
}
h1 {
text-align: center;
margin: 0;
padding: 0.6em 2em 0.4em;
background-color: #3399FF;
color: #ffffff;
font-weight: normal;
font-size: 1.75em;
border-bottom: 2px solid #000;
}
h1 strong {
font-weight: bold;
}
h2 {
font-size: 1.1em;
font-weight: bold;
}
.content {
padding: 1em 5em;
}
.content-columns {
/* Setting relative positioning allows for
absolute positioning for sub-classes */
position: relative;
padding-top: 1em;
}
.content-column-left {
/* Value for IE/Win; will be overwritten for other browsers */
width: 47%;
padding-right: 3%;
float: left;
padding-bottom: 2em;
}
.content-column-right {
/* Values for IE/Win; will be overwritten for other browsers */
width: 47%;
padding-left: 3%;
float: left;
padding-bottom: 2em;
}
.content-columns>.content-column-left, .content-columns>.content-column-right {
/* Non-IE/Win */
}
img {
border: 2px solid #fff;
padding: 2px;
margin: 2px;
}
a:hover img {
border: 2px solid #3399FF;
}
</style>
</head>

<body>
<h1>Apache 2 Test Page<br><font size="-1"><strong>powered by</font> CentOS</strong></h1>

<div class="content">
<div class="content-middle">
<p>This page is used to test the proper operation of the Apache HTTP server after it has been installed. If you can read this page it means that the Apache HTTP server installed at this site is working properly.</p>
</div>
<hr />
<div class="content-columns">
<div class="content-column-left">
<h2>If you are a member of the general public:</h2>

<p>The fact that you are seeing this page indicates that the website you just visited is either experiencing problems or is undergoing routine maintenance.</p>

<p>If you would like to let the administrators of this website know that you've seen this page instead of the page you expected, you should send them e-mail. In general, mail sent to the name "webmaster" and directed to the website's domain should reach the appropriate person.</p>

<p>For example, if you experienced problems while visiting [url=http://www.example.com]www.example.com[/url], you should send e-mail to "webmaster@example.com".</p>
</div>

<div class="content-column-right">

<h2>If you are the website administrator:</h2>

<p>You may now add content to the directory <tt>/var/www/html/</tt>. Note that until you do so, people visiting your website will see this page and not your content. To prevent this page from ever being used, follow the instructions in the file <tt>/etc/httpd/conf.d/welcome.conf</tt>.</p>

<p>You are free to use the images below on Apache and CentOS Linux powered HTTP servers.  Thanks for using Apache and CentOS!</p>

<p><a href="http://httpd.apache.org/"><img src="/icons/apache_pb.gif" alt="[ Powered by Apache ]"/></a> <a href="http://www.centos.org/"><img src="/icons/powered_by_rh.png" alt="[ Powered by CentOS Linux ]" width="88" height="31" /></a></p>

</div>
</div>
                </div>
                <div class="content">
                        <div class="content-middle"><h2>About CentOS:</h2><b>The Community ENTerprise Operating System</b> (CentOS) is an Enterprise-class Linux Distribution derived from sources freely provided to the public by a prominent North American Enterprise Linux vendor.  CentOS conforms fully with the upstream vendors redistribution policy and aims to be 100% binary compatible. (CentOS mainly changes packages to remove upstream vendor branding and artwork.)  The CentOS Project is the organization that builds CentOS.</p>
<p>For information on CentOS please visit the <a href="http://www.centos.org/">CentOS website</a>.</p>

<p><h2>Note:</h2><p>CentOS is an Operating System and it is used to power this website; however, the webserver is owned by the domain owner and not the CentOS Project.  <b>If you have issues with the content of this site, contact the owner of the domain, not the CentOS project.</b>
<p>Unless this server is on the CentOS.org domain, the CentOS Project doesn't have anything to do with the content on this webserver or any e-mails that directed you to this site.</p>
<p>For example, if this website is [url=http://www.example.com]www.example.com[/url], you would find the owner of the example.com domain at the following WHOIS server:</p>
<p><a href="http://www.internic.net/whois.html">http://www.internic.net/whois.html</a></p>

                        </div>
</div>
</body>
</html>


Offline julianxu

  • Full Member
  • ***
  • Posts: 83
Re: I can not visit this site directly,so what I will do?
« Reply #114 on: March 11, 2012, 06:30:29 PM »
julianxu,     
Try this image hosting site:     
http://myphotos.mypclinuxos.com/     


Yes,I will have a try,and Hello Neal!

Offline julianxu

  • Full Member
  • ***
  • Posts: 83
Re: I can not visit this site directly,so what I will do?
« Reply #115 on: March 11, 2012, 06:32:12 PM »
julianxu:

I notice the location bar on your failed attempt picture shows
Code: [Select]
http://pclinuxos.com
without the www as in;

http://www.pclinuxos.com/

which my location bar shows. Try that link to see if it makes a difference.


Hi,O-P,nice to meet you! and I am sure I get the same result with www.pclinuxos.com!

Offline julianxu

  • Full Member
  • ***
  • Posts: 83
Re: I can not visit this site directly,so what I will do?
« Reply #116 on: March 11, 2012, 06:36:07 PM »
julianxu:

I notice the location bar on your failed attempt picture shows
Code: [Select]
http://pclinuxos.com
without the www as in;

http://www.pclinuxos.com/

which my location bar shows. Try that link to see if it makes a difference.


If the web server is configured properly it would not matter which he typed in

pclinuxos.com
http://pclinuxos.com
www.pclinuxos.com
or http://www.pclinuxos.com

They would all display the same thing.  FWIW the server is configured properly and they all resolve to the proper page.


From here, yes... from China, maybe, maybe not. A lot of weird access stuff gets reported from there, and varies from province to province. 


You are right,O-P,particularly this part "A lot of weird access stuff gets reported from there"^=^

Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 4001
Re: I can not visit this site directly,so what I will do?
« Reply #117 on: March 11, 2012, 07:10:13 PM »
Weird yes. Konqueror gets a page of HTML, but wget gets none. So two more tests to try:

1. In Konqueror while viewing the page, hit Ctrl+I and let us see the dialogue box that pops up. Also, what happens if you click the refresh button?

2. In a terminal, try wget -SO- -U Mozilla/5.0 (compatible; Konqueror/4.6; Linux) KHTML/4.6.5 (like Gecko) http://www.pclinuxos.com/. This will cause wget to identify itself as Konqueror.

Together they might help us see how the two browsers give different results from the same access.


-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf

Offline julianxu

  • Full Member
  • ***
  • Posts: 83
Re: I can not visit this site directly,so what I will do?
« Reply #118 on: March 11, 2012, 07:33:38 PM »
Weird yes. Konqueror gets a page of HTML, but wget gets none. So two more tests to try:

1. In Konqueror while viewing the page, hit Ctrl+I and let us see the dialogue box that pops up. Also, what happens if you click the refresh button?

2. In a terminal, try wget -SO- -U Mozilla/5.0 (compatible; Konqueror/4.6; Linux) KHTML/4.6.5 (like Gecko) http://www.pclinuxos.com/. This will cause wget to identify itself as Konqueror.

Together they might help us see how the two browsers give different results from the same access.



1.Here is the snapshot (please tell me if you can not see it):
http://myphotos.mypclinuxos.com/images/julianxu/snapshot6.png

2.One thing to comfirm,The command you want me to try is :
Code: [Select]
wget -SO- -U Mozilla/5.0 (compatible; Konqueror/4.6; Linux) KHTML/4.6.5 (like Gecko) http://www.pclinuxos.com/

the result is :
Code: [Select]
bash: syntax error near unexpected token `)'
« Last Edit: March 12, 2012, 08:04:06 AM by julianxu »

Offline julianxu

  • Full Member
  • ***
  • Posts: 83
Re: I can not visit this site directly,so what I will do?
« Reply #119 on: March 11, 2012, 07:41:31 PM »
Quote
2. In a terminal, try wget -SO- -U Mozilla/5.0 (compatible; Konqueror/4.6; Linux) KHTML/4.6.5 (like Gecko) http://www.pclinuxos.com/. This will cause wget to identify itself as Konqueror.


I got it,the command is :
Code: [Select]
wget -SO- -U Mozilla/5.0  KHTML/4.6.5  http://www.pclinuxos.com/

right?so the output is:
Code: [Select]
[julian@localhost ~]$ wget -SO- -U Mozilla/5.0  KHTML/4.6.5  http://www.pclinuxos.com/
--2012-03-12 09:38:08--  http://khtml/4.6.5
Resolving khtml (khtml)... 202.106.199.37
Connecting to khtml (khtml)|202.106.199.37|:80... connected.
HTTP request sent, awaiting response...
  HTTP/1.1 301 Moved Permanently
  Server: nginx/0.5.23
  Date: Mon, 12 Mar 2012 01:38:41 GMT
  Content-Type: text/html
  Content-Length: 185
  Connection: keep-alive
  Location: http://bjdnserror4.wo.com.cn:8080?HOST=khtml&R=/4.6.5&
Location: http://bjdnserror4.wo.com.cn:8080?HOST=khtml&R=/4.6.5& [following]
--2012-03-12 09:38:09--  http://bjdnserror4.wo.com.cn:8080/?HOST=khtml&R=/4.6.5&
Resolving bjdnserror4.wo.com.cn (bjdnserror4.wo.com.cn)... 202.106.199.37
Connecting to bjdnserror4.wo.com.cn (bjdnserror4.wo.com.cn)|202.106.199.37|:8080... connected.
HTTP request sent, awaiting response...
  HTTP/1.1 200 OK
  Server: Apache-Coyote/1.1
  Set-Cookie: JSESSIONID=9F0AD77F65B4821789CA0826148EEA73; Path=/
  Content-Type: text/html;charset=gb2312
  Content-Length: 694
  Date: Mon, 12 Mar 2012 01:38:41 GMT
Length: 694 [text/html]
Saving to: `STDOUT'

 0% [                                                                                     ] 0           --.-K/s              <!--
���ļ�������lighttpd��nginxת�����������
-->






<html>
        <head>
                <TITLE>����������ʾ</TITLE>
        </head>
        <body leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0">

                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                                <td>
                                        <iframe name=_parent border=0 src=issueunziped/baidubj120118/index.jsp?sf=&UserUrl=khtml frameSpacing=0
                                                marginHeight=0 frameBorder=0 noResize width=100% scrolling=no
                                                height=1005 vspale=0>
                                        </iframe>
                                        <iframe
                                                src="counter/counter.jsp?pc=52701&dn=khtml&ip=114.252.241.180"
                                                width="0" height="0">
                                        </iframe>
                                </td>
                        </tr>
                </table>

        </body>
</html>
100%[====================================================================================>] 694         --.-K/s   in 0s

2012-03-12 09:38:09 (33.8 MB/s) - written to stdout [694/694]

--2012-03-12 09:38:09--  http://www.pclinuxos.com/
Resolving [url=http://www.pclinuxos.com]www.pclinuxos.com[/url] ([url=http://www.pclinuxos.com]www.pclinuxos.com[/url])... 199.231.58.82
Connecting to [url=http://www.pclinuxos.com]www.pclinuxos.com[/url] ([url=http://www.pclinuxos.com]www.pclinuxos.com[/url])|199.231.58.82|:80... connected.
HTTP request sent, awaiting response...
  HTTP/1.1 403 Forbidden
  Date: Mon, 12 Mar 2012 01:38:43 GMT
  Server: Apache/2.2.3 (CentOS)
  Accept-Ranges: bytes
  Content-Length: 5043
  Connection: close
  Content-Type: text/html; charset=UTF-8
2012-03-12 09:38:10 ERROR 403: Forbidden.

FINISHED --2012-03-12 09:38:10--
Total wall clock time: 2.0s
Downloaded: 1 files, 694 in 0s (33.8 MB/s)

« Last Edit: March 11, 2012, 07:44:36 PM by julianxu »