настройка конфига

muzhik nginx-forum at nginx.us
Wed Aug 20 03:29:56 UTC 2014


добрый день, пользуюсь ispmanager 5, и не могу сообразить куда в его конфиг
нужно добавить строки

#user 'andrei' virtual host 'domentk.tk' configuration file
server {
	server_name domentk.tk www.domentk.tk;
	charset off;
	disable_symlinks if_not_owner from=$root_path;
	index index.php;
	root $root_path;
	set $root_path /var/www/andrei/data/www/domentk.tk;
	ssi on;
	access_log /var/www/httpd-logs/domentk.tk.access.log ;
	error_log /var/www/httpd-logs/domentk.tk.error.log notice;
	listen 80;
	include /etc/nginx/vhosts-includes/*.conf;
	location / {
		location ~ [^/]\.ph(p\d*|tml)$ {
			try_files /does_not_exists @php;
		}
	}

	location @php {
		fastcgi_index index.php;
		fastcgi_param PHP_ADMIN_VALUE "sendmail_path = /usr/sbin/sendmail -t -i -f
webmaster at domentk.tk";
		fastcgi_pass unix:/var/www/php-fpm/andrei.sock;
		fastcgi_split_path_info ^((?U).+\.ph(?:p\d*|tml))(/?.+)$;
		try_files $uri =404;
		include fastcgi_params;
	}
}


чтобы начал функционировать cms pagekit
location / {
    try_files $uri $uri/ /index.php?$args;
}

прии вставке в существующий локейшн - файл с исходным кодом просто падает на
скачивание

Posted at Nginx Forum: http://forum.nginx.org/read.php?21,252685,252685#msg-252685



Подробная информация о списке рассылки nginx-ru