Stackoverfow Access ajax.googleapis.com

Source: Internet
Author: User

The experimental environment in this paper: Fedora 23

First Use Nslookup to view stackoverflow.com IP

The-VC parameter, which indicates the use of a forced TCP

Find the address of the StackOverflow seems to be correct, with the local DNS resolution and Google 8.8.8.8 DNS resolution of the same results.

But stackoverflow.com still can't access!

The browser uses developer mode to see

Note this request is not on the server side of the browser, so you can build your own local HTTP server to solve this problem.

Workaround:

Build your own local file server, and then modify the/etc/hosts file to point the relevant domain name resolution to the native address.

A. Apache HTTP Server

Start Httpd:systemctl start httpd

Create directory:/var/www/html/ajax/libs/jquery/"It depends on the version number you got last step"/jquery.min.js

:

  

(Note: Successful get jqeury.min.js file, now can access stackoverflow.com)

B. Python

Python can create a local simple server (ref.: http://www.cnblogs.com/xuxn/archive/2011/02/14/build-simple-web-server-with-python.html)

After that, it just solves the problem of unreachable. Actually, there's a problem.

Above the red line, said StackOverflow need other JS file.

Stackoverfow Access ajax.googleapis.com

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.