Git Product home page Git Product logo

Comments (3)

NeilFraser avatar NeilFraser commented on May 5, 2024

The bug description no longer describes the current behaviour. Full testing:

http://google.codecity.world    -> hang
https://google.codecity.world   -> https://google.codecity.world
http://google.codecity.games    -> hang
https://google.codecity.games   -> https://google.codecity.world
http://google.codecity.academy  -> hang
https://google.codecity.academy -> https://google.codecity.world

http://codecity.world        -> https://codecity.world
https://codecity.world       -> https://codecity.world
http://codecity.games        -> https://codecity.games
https://codecity.games       -> https://codecity.games
http://codecity.academy      -> https://codecity.academy
https://codecity.academy     -> https://codecity.academy

http://www.codecity.world    -> https://codecity.world
https://www.codecity.world   -> https://codecity.world
http://www.codecity.games    -> https://codecity.games
https://www.codecity.games   -> https://codecity.games
http://www.codecity.academy  -> https://codecity.academy
https://www.codecity.academy -> https://codecity.academy

All permutations are correct, with the glaring exception that http://google.codecity.* hangs.

from codecity.

NeilFraser avatar NeilFraser commented on May 5, 2024

This failure to redirect is the fault of some firewall. Nginx appears to be properly configured:

> telnet localhost 80
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
> GET / HTTP/1.1
> Host: google.codecity.games
> 

HTTP/1.1 301 Moved Permanently
Server: nginx/1.10.3
Date: Thu, 14 May 2020 04:02:02 GMT
Content-Type: text/html
Content-Length: 185
Connection: keep-alive
Location: https://google.codecity.world/      <-  CORRECT!

<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx/1.10.3</center>
</body>
</html>

from codecity.

cpcallen avatar cpcallen commented on May 5, 2024

Yes: it appears that, since we were moved from the google-default folder to the community folder, our firewall rules no longer allow traffic on port 80. Mind you, they also don't allow traffic from non-Google IP addresses at all, so this is the least of our problems.

This bug is probably a dup of "launch, so we can kill CGE Enforcer", but I'll leave it open so we don't forget about http.'

Do we want to canonicalise the homepage URLs? I seem to recall looking in to that and discovering that it was slightly less trivial to accomplish than it should be. Of course if we abandon app engine then we can just do it in nginx…

from codecity.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.