I am using Nginx for a simple demo website, and I just configure the Nginx like this:
server {
listen 80;
server_name www.abc.com;
server {
# Default, you don't need this!
#listen 80;
server_name www.abc.com;
# Index and root are global configurations for the whole server.
index index.html;
root /home/www.abc.com/;
location / {
location ~* ^/sub/ {
# The tilde and asterisks ensure that this location will
# be matched case insensitive. nginx does not support
# setting absolutely everything to be case insensitive.
# The reason is easy, it's costly in terms of performance.
}
}
}