mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-25 12:31:06 -05:00
nginx sampleconf
This commit is contained in:
parent
b87416c68c
commit
f390ffe580
21
doc/webserver_sampleconfigs/nginx-site.conf
Normal file
21
doc/webserver_sampleconfigs/nginx-site.conf
Normal file
@ -0,0 +1,21 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name stikked;
|
||||
root /var/www/stikked/htdocs;
|
||||
index index.php;
|
||||
|
||||
# access_log /var/log/nginx/localhost.access_log combined;
|
||||
# error_log /var/log/nginx/localhost.error_log info;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php;
|
||||
}
|
||||
|
||||
location ~* \.php$ {
|
||||
fastcgi_pass 127.0.0.1:9000;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_split_path_info ^(.+\.php)(.*)$;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user