Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Nginx Htaccess

i was looking for this, but im using nginx webserver. what can i use ? and for use this and INVO tutorails, should I do one of thouse ;


works great. thx

edited Mar '14

@ahmeterol: Nginx does NOT support htaccess...

This is what i use, for nginx:

server {
  listen      ;

  server_name ;
  root /var/www/;
    index  index.php index.html index.htm;

  access_log            /var/log/nginx/;
  error_log             /var/log/nginx/;

  location / {
    root  /var/www/;
    try_files $request_uri $request_uri/ /index.php$is_args$args;
    index  index.html index.htm index.php;
    gzip on;
  location ~* \.(ico|3gp|gif|jpg|cur|svg|jpeg|png|wmv|avi|asf|asx|mpg|mpeg|mp4|woff|pls|mp3|mid|wav|swf|flv|js|html|htm|txt|css|exe|zip|tar|rar|gz|tgz|bz2|uha|7z|doc|docx|xls|xlsx|pdf|iso|htc)(\?[0-9]+)?$ {
    access_log off;
    add_header Pragma "public";
    error_log off;
    expires max;
    log_not_found off;

  location ~* \.php$ {
    fastcgi_split_path_info ^(.+\.php)(/.+)$;
    try_files $uri =404;
    include /etc/nginx/fastcgi_params;
    fastcgi_pass unix:/var/run/php5-fpm.sock;

    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

include /etc/nginx/mime.types;