Skip to content

Instantly share code, notes, and snippets.

@anon5r
Last active January 24, 2019 06:50
nginxのtry_filesを使って走査ファイルパスを割り込ませる
server {
listen 80;
server_name www.example.co.jp;
root /var/www/dir_b/public_html;
location / {
root /var/www/dir_a/public_html;
try_files $uri $uri/ @dirB;
}
location @dirB {
internal;
root /var/www/dir_b/public_html;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment