I'd like to create a rule to match all the paths except some.
- site.com/
- site.com/admin/
- site.com/user1/
- site.com/user2/
- site.com/user3/
Here's what I have so far but looks like something wrong.
location / {
# configuration for homepage
}
location /admin/ {
# configuration for admin
}
location ~* ^/(.*)$ {
# configuration for other pages
}
So how I can change the last rule to match all paths?