Welcome! Log In Create A New Profile

Advanced

Re: How to configure without extension on nginx

December 26, 2010 02:44PM
On Sat, Dec 25, 2010 at 10:40:16PM -0500, letgohome wrote:

> I try it, but unsuccessful,
>
> [code]
> server {
> listen 80;
> server_name localhost;
> root /www/linux;
> index index.html index.php index.htm;
>
> location = /test {
> types {}
> default_type text/html;
> }
>
> location ~ \.php$ {
> # fastcgi_pass unix:/tmp/php-cgi.sock;
> fastcgi_pass 127.0.0.1:9000;
> fastcgi_index index.php;
> include fcgi.conf;
> }
> }
> [/code]

Probably browser has already cache the response.
Try another browser or try to rename location:

location = /test1 {
alias /www/linux/text;
...


--
Igor Sysoev
http://sysoev.ru/en/

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

How to configure without extension on nginx

letgohome December 25, 2010 11:59AM

Re: How to configure without extension on nginx

Maxim Dounin December 25, 2010 12:32PM

Re: How to configure without extension on nginx

letgohome December 25, 2010 10:40PM

Re: How to configure without extension on nginx

letgohome December 27, 2010 09:06AM

Re: How to configure without extension on nginx

Igor Sysoev December 26, 2010 02:44PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 200
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