Welcome! Log In Create A New Profile

Advanced

Re: Do nginx do not auto differentiate the file name and directory name in the url?

February 28, 2010 09:52PM
dear all, i use Firefox to visit "http://localhost/myweb" , is also do not work.
[b]here is my nginx.conf[/b]
user daemon;
worker_processes 2;

#error_log logs/error.log;
#error_log logs/error.log notice;
error_log logs/error.log info;

#pid logs/nginx.pid;

events {
worker_connections 1024;
}

http {
include mime.types;
default_type application/octet-stream;
server_tokens off;

#access_log logs/access.log main;

sendfile on;
#tcp_nopush on;

keepalive_timeout 65;

#gzip on;

server {
listen 80;
server_name localhost;

#charset koi8-r;

#access_log logs/host.access.log main;

location / {
root /home/httpd/html;
index index.html index.htm index.php;
}

#error_page 404 /404.html;

# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}

# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000

location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /home/httpd/html/$fastcgi_script_name;
include fastcgi_params;
}

}

}



[b]here is the access.log record result[/b]
[color=#FF0000]fail[/color]
192.168.1.19 - - [01/Mar/2010:10:42:33 +0800] "GET /myweb HTTP/1.1" 301 178 "-" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trid
ent/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)"
[color=#FF0000]success[/color]
192.168.1.19 - - [01/Mar/2010:10:44:18 +0800] "GET /myweb/ HTTP/1.1" 200 45696 "-" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)"
Subject Author Posted

Do nginx do not auto differentiate the file name and directory name in the url?

ultrawind February 27, 2010 04:32AM

Re: Do nginx do not auto differentiate the file name and directory name in the url?

edogawaconan February 27, 2010 05:50AM

Re: Do nginx do not auto differentiate the file name and directory name in the url?

Vicente Aguilar February 28, 2010 02:42AM

Re: Do nginx do not auto differentiate the file name and directory name in the url?

ultrawind February 28, 2010 09:52PM

Re: Do nginx do not auto differentiate the file name and directory name in the url?

Vicente Aguilar March 01, 2010 01:56AM

Re: Do nginx do not auto differentiate the file name and directory name in the url?

ultrawind March 01, 2010 09:29PM

Re: Do nginx do not auto differentiate the file name and directory name in the url?

Igor Sysoev March 02, 2010 10:02AM

Re: Do nginx do not auto differentiate the file name and directory name in the url?

ultrawind March 04, 2010 03:03AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 77
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready