Jonatanail
Newbie | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору С параметрами: Код: location ~ /\. { deny all; access_log off; log_not_found off; } location = /favicon.ico { log_not_found off; access_log off; } location = /robots.txt { allow all; log_not_found off; access_log off; } location /stats/ { index index.html index.php; auth_basic "Members Only"; auth_basic_user_file /var/www/clients/client3/web31/web/stats/.htpasswd_stats; } location ^~ /awstats-icon { alias /usr/share/awstats/icon; } location ~ \.php$ { try_files /35ab6b4a3aba50889a9ddf5709d3096e.htm @php; } location @php { try_files $uri =404; include /etc/nginx/fastcgi_params; fastcgi_pass unix:/var/lib/php5-fpm/web31.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_intercept_errors on; } location / { try_files $uri $uri/ /index.php?$args; } | Сайт открывается, открываются все ссылки, но не применяются стили. http://сайт-нэйм/index.php тоже кстати не открывается. Добавлено: Содержимое csszip.php Код: <?php ob_start ("ob_gzhandler"); $file_arr_css[] = 'public/skin/styles/sys/reset.css'; $file_arr_css[] = 'public/skin/styles/sys/sys.css'; $file_arr_css[] = 'public/skin/styles/sys/jquery.fancybox.css'; $file_arr_css[] = 'public/skin/styles/style.css'; $file_arr_css[] = 'public/skin/styles/poll.css'; //if($_GET['s']=='s') //$file_arr_css[] = 'public/skin/styles/second.css'; if(!empty($_GET['mode'])) { header('Content-type: text/'.$_GET['mode'].'; charset: windows-1251'); header ("cache-control: must-revalidate"); $offset = 30 * 24 * 60 * 60; $expire = "expires: " . gmdate ("D, d M Y H:i:s", time() + $offset) . " GMT"; header ($expire); if($_GET['mode']=='css') { foreach($file_arr_css as $val) { $data .= file_get_contents($val); } $data = compress($data); } echo $data; } exit; function compress($buffer) { $buffer = preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $buffer); $buffer = str_replace(array("\r\n", "\r", "\n", "\t", ' ', ' ', ' ' ,' '), '', $buffer); $buffer = str_replace('../images/', '/public/skin/images/', $buffer); return $buffer; } ?> |
|