How to configure without extension on nginx
Igor Sysoev
igor at sysoev.ru
Sun Dec 26 22:42:26 MSK 2010
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/
More information about the nginx
mailing list