I have successfully set up Mibew on Apache, but I am now trying to set up mibew-2.2.0 on nginx.
For Nginx I'm a novice.
I cannot get the install to run, and I get an error:404
I try to convert .htaccess contents ,but it doesn't work.
if i convert .htaccess,need to remove .htaccess in mibew?
I hope get some suggestions.
project path:/var/www/mibew
server{}:
server {
listen 80;
server_name localhost;
root /var/www;
index index.php index.html;
location / {
if (!-f $request_filename){
set $rule_0 1$rule_0;
}
if (!-d $request_filename){
set $rule_0 2$rule_0;
}
if ($rule_0 = "21"){
rewrite ^/install(/(.*))?$ /install.php last;
}
if (!-f $request_filename){
set $rule_0 1$rule_0;
}
if (!-d $request_filename){
set $rule_0 2$rule_0;
}
if ($rule_0 = "21"){
rewrite ^/(.*)$ /index.php last;
}
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
location ~ \.php$ {
if (!-f $request_filename){
set $rule_0 1$rule_0;
}
if (!-d $request_filename){
set $rule_0 2$rule_0;
}
if ($rule_0 = "21"){
rewrite ^/install(/(.*))?$ /install.php last;
}
if (!-f $request_filename){
set $rule_0 1$rule_0;
}
if (!-d $request_filename){
set $rule_0 2$rule_0;
}
if ($rule_0 = "21"){
rewrite ^/(.*)$ /index.php last;
}
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location ~ /\.ht {
deny all;
}
}
can anyone show the nginx.conf :server{}?