Code Monkey home page Code Monkey logo

Comments (8)

miguelgrinberg avatar miguelgrinberg commented on May 22, 2024

The microblog2 reference is a mistake, I'll correct that.

Does it work if you comment out the error_log and access_log lines?

from microblog.

tianke0711 avatar tianke0711 commented on May 22, 2024

thanks @miguelgrinberg for you answer. I have corrected the directory of microblog and commented out the error_log and access_log. After run the command: sudo service nginx reload, and there is no error. But accessed the application by the browser which input: http://192.168.33.10 , and there is error as following:

192.168.33.10 uses an invalid security certificate. The certificate is not trusted because it is self-signed. The certificate is not valid for the name 192.168.33.10. Error code: SEC_ERROR_UNKNOWN_ISSUER

In the Mac before this chapter, I just run: the flask run, and it can be accessed by: 127.0.0.1:5000.

from microblog.

miguelgrinberg avatar miguelgrinberg commented on May 22, 2024

This is not an error. The SSL certificate that you are using is self-signed, it is not going to be validated by the browser. From that chapter:

Because you are using a self-signed certificate, you will get a warning from the web browser, which you will have to dismiss.

from microblog.

tianke0711 avatar tianke0711 commented on May 22, 2024

hi @miguelgrinberg thanks for your answer. But I change a browser, the error is as following image.
Could you tell me how to run the app in server, after run the command: sudo service nginx reload.
I know in Mac, I just run:flask run, then go to browser to access it by 127.0.0.0.1:5000. How about in ubuntu server.

screen shot 2017-12-28 at 16 40 38

from microblog.

miguelgrinberg avatar miguelgrinberg commented on May 22, 2024

I don't use Safari that much, Does it give you an option to allow the invalid certificate? Most browsers do. If you have no choice to ignore the invalid certificate, then your options are to use a different browser (such as Chrome) or to add the certificate to the browser configuration, so that it is recognized as valid.

from microblog.

tianke0711 avatar tianke0711 commented on May 22, 2024

hi @miguelgrinberg thanks! After I changed to chrome, it works (I don't know why safari doesn't work), although, there is sign in error, I will fix it. By the way, if I want to deploy the app to AWS ubuntu. Are there some difference with vagrant?

from microblog.

miguelgrinberg avatar miguelgrinberg commented on May 22, 2024

Deploying to an EC2 should work in the same way as in your Vagrant VM. The only difference is in how you expose a public IP address to access the application to the outside, and also that you need to set up your security groups in the same way I set up the firewall.

from microblog.

miguelgrinberg avatar miguelgrinberg commented on May 22, 2024

This issue will be automatically closed due to being inactive for more than six months. Please reopen if you need more assistance.

from microblog.

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.