ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Проблема с nginx+apache


  • To: nginx-ru@xxxxxxxxx
  • Subject: Проблема с nginx+apache
  • From: "Skyscraper" <nginx-forum@xxxxxxxx>
  • Date: Wed, 13 Oct 2010 14:22:16 -0400
  • Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mickey.jlkhosting.com; s=x; h=Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To:Date; bh=lJ4+ssM7K6e4zdlAklLOQA0/C7E77gh7JVZ8rg6vIz4=; b=MQsfoyWMKRao//KtP1tNf1PFmwLQCMQB9NBkn5BRAajZtBHqxZ+tPMZNLlmxpDzMCHj1XRkWqpeA1Rxt6nVsfOR1piWogZOra4ItM6HO+fbE8uMcj+ZaqvhQNDzqQSdI;

Привет! помогите с такой проблемой:
имею ubuntu 10 + nginx+apahe [mod_php+xcache] 
крутятся joomla сайты и магаз joomla+virtuemart
не могу найти из-за чего тормозит
загрузка картинок, шаблон и текст
загружаются быстро, а вот с картинками
беда, идут в один поток по очереди...
мои конфиги:

[quote=nginx]
user www-data;
worker_processes 2;
pid /var/run/nginx.pid;

events {
worker_connections 64000;
use epoll;
}

http {

limit_req_zone $binary_remote_addr zone=one:10m rate=3r/s;
include /opt/nginx/conf/mime.types;
default_type application/octet-stream;

sendfile on;

keepalive_timeout 65;
client_max_body_size 100m;
tcp_nodelay on;
gzip off;

server {
listen 80;
server_name domen.in www.domen.in;
location / {
limit_req zone=one burst=30;
proxy_pass http://127.0.0.1:81;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location ~* ^.+.(phpmyadmin/|administrator/) {
proxy_pass http://127.0.0.1:81;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css)$ {
root /home/domen.in;
error_page 404 = @fallback;
}
location @fallback {
proxy_pass http://127.0.0.1:81;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
}

location ~ /\index.html {
root /home/domen.in;
}}} 
[/quote]

[quote=apache2]
ServerRoot "/etc/apache2"
PidFile ${APACHE_PID_FILE}
Timeout 60
KeepAlive Off
MaxKeepAliveRequests 50
KeepAliveTimeout 5


StartServers 2
MinSpareServers 2
MaxSpareServers 20
MaxClients 20
MaxRequestsPerChild 1000



StartServers 2
MinSpareThreads 2
MaxSpareThreads 30
ThreadLimit 210
ThreadsPerChild 210
MaxClients 25
MaxRequestsPerChild 1000



StartServers 2
MaxClients 25
MinSpareThreads 15
MaxSpareThreads 55
ThreadLimit 64
ThreadsPerChild 55
MaxRequestsPerChild 1000


User www-data
Group www-data
AccessFileName .htaccess


Order allow,deny
Deny from all
Satisfy all


DefaultType text/plain
HostnameLookups Off

ErrorLog /var/log/apache2/error.log
Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf
Include /etc/apache2/httpd.conf
Include /etc/apache2/ports.conf
Include /etc/apache2/conf.d/
Include /etc/apache2/sites-enabled/ 
[/quote]

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


_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.