Welcome! Log In Create A New Profile

Advanced

.htaccess File Not Found Nginx Laravel

Posted by et-taousy 
.htaccess File Not Found Nginx Laravel
May 30, 2016 07:05AM
Hi there,

I'm new in nginx i try to move from apache to nginx, my project work fine in apache but when i moved it to nginx i can't access to any URL with .htaccess but the home page index.php is ok i get File Not Found

please help my confige file

tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;

include /etc/nginx/mime.types;
default_type application/octet-stream;

# Load modular configuration files from the /etc/nginx/conf.d directory.
# See http://nginx.org/en/docs/ngx_core_module.html#include
# for more information.
include /etc/nginx/conf.d/*.conf;

server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
root /usr/share/nginx/html;

# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;
index index.php index.html;
location / {
try_files $uri $uri/ /index.php?$args;
}

error_page 404 /404.html;

location ~ \.php$ {
fastcgi_index index.php;
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

}

location = /40x.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}
}



Edited 1 time(s). Last edit at 05/30/2016 07:06AM by et-taousy.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 169
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready