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; +}