You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
655 B
Plaintext
31 lines
655 B
Plaintext
server {
|
|
listen 80 default_server;
|
|
|
|
# server_name localhost;
|
|
root /var/www/html/basic;
|
|
index index.php index.html;
|
|
|
|
error_log /var/log/nginx/error.log;
|
|
access_log /var/log/nginx/access.log;
|
|
|
|
sendfile off;
|
|
|
|
client_max_body_size 100m;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.php?$query_string;
|
|
}
|
|
|
|
location ~ \.php$ {
|
|
include fastcgi_params;
|
|
fastcgi_pass php:9000;
|
|
fastcgi_index index.php;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
}
|
|
|
|
#location ~ /.ht {
|
|
# deny all;
|
|
#}
|
|
}
|