You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.2 KiB
34 lines
1.2 KiB
server {
|
|
listen 80;
|
|
server_name huocms_docker.local.com;
|
|
|
|
#charset koi8-r;
|
|
|
|
#access_log logs/host.access.log main;
|
|
root /var/www/html/HuoCMS_close_source/public;
|
|
access_log /var/log/nginx/HuoCMS_close_source.local.com.access.log ;
|
|
error_log /var/log/nginx/HuoCMS_close_source.local.com.error.log error;
|
|
|
|
location / {
|
|
index index.html index.htm index.php;
|
|
#autoindex on;
|
|
if (!-e $request_filename) {
|
|
rewrite ^(.*)$ /index.php?s=/$1 last;
|
|
break;
|
|
}
|
|
}
|
|
location ~ \.php$
|
|
{
|
|
# try_files $uri;
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
fastcgi_pass unix:/var/run/php-fpm.sock;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
# fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
|
|
|
|
fastcgi_param APP_ENV production;
|
|
fastcgi_index index.php;
|
|
include fastcgi_params;
|
|
}
|
|
}
|