GetSimple Support Forum

Full Version: Other Servers
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
The Get-Simple is ready for the servers "Lighttpd" and "Nginx"?
How do Friendlies with ULR. "mod_rewrite"?

Quote:O Get-Simple já está preparado para os servidores "Lighttpd" e "NGinx"?
Como faço com as ULR Amigáveis. "mod_rewrite"?
sorry, when I click on them, they work

but whatever: just start a forum-search with these servernames and you will get quite enough stuff to study ;=)
NGINX here. Right now i'm developing (so sites are password protected) a small brochure site with 2 domain, so config includes rewrite and authentication. This is not a perfect config, but at least you can start form here. BTW, from my test nginx+getsimple is much faster than apache when you have limited resources:

# cat /etc/nginx/sites-enabled/

server {
  listen          80;
  server_name     * *;
  rewrite ^       [url][/url]$request_uri permanent;

server {
    listen 80;
    charset utf-8;
    access_log off;
    root /var/www/;
    index index.php;

    location / {
    auth_basic            "Restricted";
    auth_basic_user_file  mysite_pass;
    try_files       $uri $uri/ /index.php?id=$uri;

    location ~* \.php$ {
      include /etc/nginx/fastcgi_php;
#      expires 2h;

    location ~* \.(ico|js|gif|jpg|png)$ {
      try_files       $uri /index.php?id=$uri;
#      expires 14d;

    location ~* \.(htm|css|html)$ {
      try_files       $uri /index.php?id=$uri;
#      expires 2d;

just posted an updated version here:
i'm not sure about the real benefit you have caching fastcgi queries because 3.1 already has some internal cache, and i don't have a large complex site to run ab comparative tests.