Skip to content
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

Varnish Problem #47

Closed
mucan54 opened this issue Sep 15, 2021 · 8 comments
Closed

Varnish Problem #47

mucan54 opened this issue Sep 15, 2021 · 8 comments

Comments

@mucan54
Copy link
Contributor

mucan54 commented Sep 15, 2021

I followed the steps to setup magento 2 as bash menu described, I added my domain. Everything is done successfully but at the end I can not reach the site. When I check ngnix acces.log I see that log:

127.0.0.1 - - [15/Sep/2021:17:52:07 +0000] "GET http://localhost/health_check.php HTTP/1.1" 200 434 "-" "-" 0.017 - "18b43c5411b5c63b528e700104367c3d"
127.0.0.1 - - [15/Sep/2021:17:52:12 +0000] "GET http://localhost/health_check.php HTTP/1.1" 200 434 "-" "-" 0.017 - "45a123be32e42e190198a0297a9b566f"
127.0.0.1 - - [15/Sep/2021:17:52:17 +0000] "GET http://localhost/health_check.php HTTP/1.1" 200 434 "-" "-" 0.017 - "8b8e69110a367967460614db6edb7e42"

why I can not reach the website thank you.

@magenx
Copy link
Owner

magenx commented Sep 15, 2021

if you run http it will work out of the box
if you need to run https, then you have to change nginx config, uncomment https variables

we run this script like every week, and it work without any issues

@mucan54
Copy link
Contributor Author

mucan54 commented Sep 15, 2021

I tried both but couldn't get response, does it can be about my system
CPU 3
RAM 4 GB
SSD 80 GB

@magenx
Copy link
Owner

magenx commented Sep 15, 2021

there is no error in your message,
what exactly not working or any error you have?

@mucan54
Copy link
Contributor Author

mucan54 commented Sep 15, 2021

I added custom domain rather then server's ip address, and when I try to reach via domain I can not access, server doesnt respond, and in the logs of nginx access.log file I get this:

127.0.0.1 - - [15/Sep/2021:17:52:07 +0000] "GET http://localhost/health_check.php HTTP/1.1" 200 434 "-" "-" 0.017 - "18b43c5411b5c63b528e700104367c3d"
127.0.0.1 - - [15/Sep/2021:17:52:12 +0000] "GET http://localhost/health_check.php HTTP/1.1" 200 434 "-" "-" 0.017 - "45a123be32e42e190198a0297a9b566f"
127.0.0.1 - - [15/Sep/2021:17:52:17 +0000] "GET http://localhost/health_check.php HTTP/1.1" 200 434 "-" "-" 0.017 - "8b8e69110a367967460614db6edb7e42"

@mucan54
Copy link
Contributor Author

mucan54 commented Sep 16, 2021

I installed again with server default ip address I could access the site, what configurations are required when new domain added.

@magenx
Copy link
Owner

magenx commented Sep 18, 2021

you must have DNS configured, domain name in nginx confg, and store base url

@mucan54
Copy link
Contributor Author

mucan54 commented Sep 19, 2021

I configured but now my assets doesn't loads from https, I can reach my website via https but in webpage all assests loads from http. As I understant magento can't detect https enabled.

@magenx
Copy link
Owner

magenx commented Sep 19, 2021

you must have ssl certificate, base_url starts with https, for unsecure url too.

@magenx magenx closed this as completed Sep 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants