I was asked to add the following to /etc/nginx/nginx.conf to enable ssl:
server {
listen 443;
ssl on;
ssl_certificate xxxxxx;
ssl_certificate_key xxxxxx;
server_name forum.shaders.xyz;
access_log /var/log/nginx/nginx.vhost.access.log;
error_log /var/log/nginx/nginx.vhost.error.log;
location / {
root /var/www/flarum/forum.shaders.xyz/;
index index.html;
}
}
What should the index be for flarum? I tried setting it to index index.php index.html index.htm;, but then it just downloads the index.php file..
Should I have added the server{} to nginx.conf to begin with? Or should I have modified /etc/nginx/sites-enables/forum.shaders.xyz?
Any tips would be welcome
Cheers