Ok. Now i have one location ~ \.php$ for the whole location / and one for my alias location: location / { ... location ~ \.php$ { ... } } location /foo/ { alias /home/foo/bar/; location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; include fastcgi_params; fastcgi_param SCRIPT_FILENAME /home/foo/bar$fastcgi_script_name; }by bimbonius - How to...
Hi. I use alias to redirect a request: location /foo { alias /home/bar; } my config for php is: location ~ \.php$ { root /var/www; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php include fastcgi_params; fastcgi_param SCRIPT_FILENAME /var/www$fastcgi_script_name; } So, if I browse to a php file in the root of the webserver (/var/www/file.php) everythinby bimbonius - How to...
Shame on me :( Thx very muchby bimbonius - Nginx Mailing List - English
Hi. My config looks like this: location / { ... index index.php; autoindex off; } ... location /autoindx_dir/ { autoindex on; } location /autoindx_dir/not/ { autoindex off; } also I have the php cgi options. The problem is that nginx opens the index.php for my root directory if i open only the domain. If I go to the "autoindx_dir" directoby bimbonius - Nginx Mailing List - English
![]() |
![]() |
![]() |
![]() |
|