nginx에서 php 확장자 제거하기
Edit /etc/nginx/sites-available/default.conf
server {
...
location / {
try_files $uri $uri/ $uri.html $uri.php$is_args$args;
}
location ~ \.php$ {
try_files $uri =404;
}
...
}
Edit /etc/nginx/sites-available/default.conf
server {
...
location / {
try_files $uri $uri/ $uri.html $uri.php$is_args$args;
}
location ~ \.php$ {
try_files $uri =404;
}
...
}