The alignment is as follows:

/etc/nginx/nginx.conf 

see here https://justpaste.it/4nqs0

 /etc/nginx/sites-available/testapp.dev.conf 

see here https://justpaste.it/63mam

 /etc/nginx/sites-available/map.testapp.dev.conf 

see here https://justpaste.it/46xjz

 /etc/nginx/sites-available/place.testapp.dev.conf 

see here https://justpaste.it/5x1wm

Accordingly, for each file created a symbolic link format

 sudo ln -s /etc/nginx/sites-available/map.testapp.dev.conf /etc/nginx/sites-enabled/map.testapp.dev.conf 

/ etc / hosts

 127.0.0.1 www.testapp.dev 127.0.0.1 testapp.dev 127.0.0.1 map.testapp.ru 127.0.0.1 place.testapp.ru 

nginx version: nginx/1.14.0 (Ubuntu)

nginx.service

 - A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled) Active: active (running) since Mon 2018-08-06 12:28:23 MSK; 22min ago Docs: man:nginx(8) Process: 801 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS) Process: 784 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS) Main PID: 803 (nginx) Tasks: 3 (limit: 3502) CGroup: /system.slice/nginx.service ├─803 nginx: master process /usr/sbin/nginx -g daemon on; master_p…n; ├─805 nginx: worker process └─807 nginx: worker process Aug 06 12:28:22 ubuntu systemd[1]: Starting A high performance web server a…r... Aug 06 12:28:23 ubuntu nginx[784]: nginx: [warn] conflicting server name "m…ored Aug 06 12:28:23 ubuntu nginx[801]: nginx: [warn] conflicting server name "m…ored Aug 06 12:28:23 ubuntu systemd[1]: nginx.service: Failed to parse PID from …ment Aug 06 12:28:23 ubuntu systemd[1]: Started A high performance web server an…ver. 

Php

 7.2.7-0ubuntu0.18.04.2 (cli) (built: Jul 4 2018 16:55:24) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.2.7-0ubuntu0.18.04.2, Copyright (c) 1999-2018, by Zend Technologies 

symfony 3.1

Problem: when entering testapp.dev, for some reason, it goes to https://testapp.dev with the answer.

When launched from a project folder using symfony, everything works correctly on localhost with port 8000

  • In Google Chrome and Firefox, .dev domains will automatically redirect to https. read more here - StereoFlo

0