nginx之重写uri为全小写
# egrep -v '^[[:space:]]*#|^$' /usr/local/nginx/conf/nginx.conf user apache;worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name localhost;
root html;
index index.html index.htm;
location ~* "\.php$" {
fastcgi_pass 127.0.0.1:9000;
include fastcgi.conf;
}
location / {
lower $lower_uri "$request_uri";
rewrite .* $lower_uri break;
proxy_pass http://192.168.18.241;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
}
页:
[1]