From adbbf024e464ebc7c8fa42e9313bf6716f1ce385 Mon Sep 17 00:00:00 2001 From: yohann Date: Wed, 5 May 2021 19:26:23 +0200 Subject: [PATCH] update project def --- ansible.cfg | 2 ++ vhost.conf | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 ansible.cfg create mode 100644 vhost.conf diff --git a/ansible.cfg b/ansible.cfg new file mode 100644 index 0000000..6e5f1e8 --- /dev/null +++ b/ansible.cfg @@ -0,0 +1,2 @@ +[defaults] +roles_path=roles \ No newline at end of file diff --git a/vhost.conf b/vhost.conf new file mode 100644 index 0000000..352eed4 --- /dev/null +++ b/vhost.conf @@ -0,0 +1,33 @@ + +# Default server configuration +# +server { + listen 80 default_server; + listen [::]:80 default_server; + + root /var/www/html/symfony_blog/current/public; + + index index.php; + + server_name _; + + location / { + try_files $uri /index.php$is_args$args; + } + + location ~ ^/index\.php(/|$) { + fastcgi_pass unix:/var/run/php/php7.4-fpm.sock; + fastcgi_split_path_info ^(.+\.php)(/.*)$; + include fastcgi_params; + fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name; + fastcgi_param DOCUMENT_ROOT $realpath_root; + internal; + } + + location ~ \.php$ { + return 404; + } + + error_log /var/log/nginx/symfony_blog_error.log; + access_log /var/log/nginx/symfony_blog_access.log; +}