certbot/certbot-compatibility-test/nginx/nginx-roundtrip-testdata/mybb/nginx.conf
2016-07-11 13:58:21 -07:00

27 lines
625 B
Nginx Configuration File

server {
server_name quantifiedselfforum.com;
access_log logs/qsforum.access;
error_log logs/qsforum.error error;
root /var/www/qsforum;
location / {
index index.php;
}
# Deny access to internal files.
location ~ /(inc|uploads/avatars) {
deny all;
}
# Pass the php scripts to fastcgi server
location ~ \.php$ {
fastcgi_pass unix:/tmp/php.socket;
# Necessary for php.
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
# Unmodified fastcgi_params from nginx distribution.
include fastcgi_params;
}
}