nginx переписывают правила для Joomla!

Я выполняю ASP для определенного приложения на основе TS/Citrix., сервером с 50 пользователями для меня является Сервер 2000 с 4 ГБ RAM и двойного Xeon 2.8 GHz CPUs.

Изменитесь на Сервер 2000 с 4 ГБ RAM и двойных двухъядерных центральных процессоров AMD 2,2 ГГц, и я получаю 75 пользователей.

Изменитесь на Сервер 2003 с 16 ГБ RAM и двойных четырехъядерных 2.2 Xeon, и я получаю 140 пользователей.

2
задан 2 September 2010 в 00:00
1 ответ

Я не уверен, было ли это решено, но эта конфигурация nginx работы для моей joomla установки.

server {
  server_name example.com;
  rewrite ^ http://www.example.com$request_uri permanent;
 }
server {
  server_name www.example.com;
  root /home/public_html/example.com/public;
  error_page   404          /404.html;
  try_files $uri $uri/ /index.php?q=$request_uri;

  index index.php index.htm index.html;
  # serve static files directly
  location ~* ^.+\.(jpg|jpeg|gif|css|png|js|ico|html)$ {
    access_log off;
    expires 30d;
  }
  location 404.html{
    index /404.html;
  }
  location ~* \.php$ {
    # By all means use a different server for the fcgi processes if you need to
    fastcgi_pass 127.0.0.1:9000;
    include /etc/nginx/fastcgi_params;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_param QUERY_STRING $query_string;
    fastcgi_param REQUEST_METHOD $request_method;
    fastcgi_param CONTENT_TYPE $content_type;
    fastcgi_param CONTENT_LENGTH $content_length;
  }
  location ~ /\.ht {
    deny all;
  }
}
1
ответ дан 3 December 2019 в 13:28

Теги

Похожие вопросы