# Hey! I'm your web server configuration, it's a pleasure to meet you :)
server {
# Replace the following line with your domain name
server_name EXAMPLE.com;
# You can safely leave the rest as if, unless you know what you
# are doing.
listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/EXAMPLE.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/EXAMPLE.com/privkey.pem;
root /var/www/my_website;
index index.php index.html index.htm;
location / {
try_files $uri $uri/ /index.php;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
# pass the PHP scripts to FastCGI server listening on the php-fpm socket
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
fastcgi_index index.php;
fastcgi_param HTTP_PROXY "";
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
chown -R www-data:www-data /var/www/wallabag/data/
chown -R www-data:www-data /var/www/wallabag/var
#If you want to use pdo_sqlite to store your data, please put %kernel.root_dir%/../data/db/wallabag.sqlite for the database_path parameter during