Welcome! Log In Create A New Profile

Advanced

Re: 404 problem

July 11, 2011 03:20AM
There is no real sub-directory, they are virtual folders created by rewrites; e.g. domain.com/search/keyword.html instead of search.php?q=keyword

Config is as

server { server_name .domain.com;
listen 80;
root /home/domain.com;
error_page 404 = /404.php;
index index.html index.php;
rewrite ^/search/(.*).html /search.php?q=$1 last;

location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /opt/nginx/conf/fastcgi_params;
}
}
Subject Author Posted

404 problem

etrader July 11, 2011 02:15AM

Re: 404 problem

Edho P Arief July 11, 2011 03:04AM

Re: 404 problem

etrader July 11, 2011 03:20AM

Re: 404 problem

Edho P Arief July 11, 2011 03:28AM

Re: 404 problem

etrader July 11, 2011 03:36AM

Re: 404 problem

Edho P Arief July 11, 2011 03:50AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 57
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready