Welcome! Log In Create A New Profile

Advanced

example.com/foo redirect to example.com/foo/index.php

basti
November 06, 2012 08:38AM
hello,
my config looks like:

server {
listen 443;
server_name foobar;

access_log /var/log/nginx/https.access_log;
error_log /var/log/nginx/https.error_log debug;

index index.php index.html index.htm;
fastcgi_index index.php;
root /home/www/ssl/foobar;

ssl on;
ssl_certificate /etc/nginx/ssl/server.crt;
ssl_certificate_key /etc/nginx/ssl/server.key;

location ~ ^/mailadmin/(.*\.php)$ {
root/home/www/ssl/foobar/mailadmin/bin/$1;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $request_filename;
}
}

a request tohttps://foobar/mailadmin/index.php is done very well and
the index.php is shown
a request tohttps://foobar/mailadmin/ is shown Error 403 Forbidden

How can i solve that a request tohttps://foobar/mailadmin/ is also
shown the index.php ?

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

example.com/foo redirect to example.com/foo/index.php

basti November 06, 2012 08:38AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 127
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready