Maxsite CMS и nginx
Выкладываю рабочий конфиг nginx под MaxSite CMS
server {
listen 127.0.0.1:80;
server_name mysite.com www.mysite.com;
root home/mysite/public_html;
index index.php index.html;
log_not_found off;
access_log logs/mysite.com-access.log;
charset utf-8;
location ~* \.(ico|css|js|gif|jpe?g|png)(\?[0-9]+)?$ {
expires max;
log_not_found off;
}
location / {
# Check if a file exists, or route it to index.php.
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;
}
}
Оцените статью или поделитесь ей в соцсетях:
Рекомендуемые статьи:
Комментарии
Нет комментариев к данной статье.