-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error: sudo service nginx reload #59
Comments
The Does it work if you comment out the |
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:
In the Mac before this chapter, I just run: the flask run, and it can be accessed by: 127.0.0.1:5000. |
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:
|
hi @miguelgrinberg thanks for your answer. But I change a browser, the error is as following image. |
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. |
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? |
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. |
This issue will be automatically closed due to being inactive for more than six months. Please reopen if you need more assistance. |
Hi @miguelgrinberg thanks for your help!
Now I am trying to deploy the microblog in the vagrant ubuntu server.
After I created nginx configuration file for Microblog file by the command:sudo nano /etc/nginx/sites-enabled/microblog,
and input the following text in this file which mentioned in your book.
I want to ask that
(1): the directory of microblog in ubuntu is microblog, why you set the /home/ubuntu/microblog2/ in this file.
(2) there is error, after I run the command: sudo service nginx reload
The text was updated successfully, but these errors were encountered: