mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-02-06 08:10:27 +01:00
31 lines
749 B
Plaintext
31 lines
749 B
Plaintext
server {
|
|
listen 8000 default; ## Listen for ipv4; this line is default and implied
|
|
|
|
# Make site accessible from http://localhost/
|
|
server_name localhost;
|
|
root /var/www/html/public;
|
|
|
|
index index.html index.htm index.php;
|
|
|
|
charset utf-8;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.php?$query_string;
|
|
}
|
|
|
|
# Pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
|
|
location ~ \.php$ {
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
include fastcgi_params;
|
|
fastcgi_pass 127.0.0.1:9000;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
fastcgi_index index.php;
|
|
fastcgi_keep_conn on;
|
|
}
|
|
|
|
location ~ /\.ht {
|
|
deny all;
|
|
}
|
|
|
|
}
|