After apache2, you need to go to the nginx + apache2 combination. For security and performance purposes.
After studying the documentation we managed to do:
- In the apache2 config, configure it to listen on port 81.
- In the nginx config, configure it on port 80.
Now when I go to the site, I see the Nginx welcome window, but I could not start the site.
It even turned out to see the Prestashop installation page (the distribution was preloaded) and go through all the steps, but after successful installation I see only the white page.
How can this be properly set up or read more about it?
I did everything as you said, but the nginx welcome window was not lost.
The fully expanded site is located in the / var / www / html directory, and there is also a nginx welcome file.
I deleted it and now "403 Forbidden nginx / 1.6.2".
Here is the config:
server { listen *:80; server_name html; #ВАШ_ДОМЕН # Перенаправление на back-end location / { proxy_pass http://127.0.0.1:81; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $remote_addr; proxy_connect_timeout 120; proxy_send_timeout 120; proxy_read_timeout 180; } # Статическиое наполнение отдает сам nginx # back-end этим заниматься не должен location ~* \.(jpg|jpeg|gif|png|ico|css|bmp|swf|js|html|txt)$ { root /var/www/html; #ПУТЬ_ДО_КОРНЕВОГО_КАТАЛОГА_САЙТА } } I deploy locally, but access is needed remotely. Here is the address - http://sgus.ddns.net:61840/ Port 61840 is forwarded on the 80th.
Reads only .html files