Server Side Includes
Server Side Includes(SSI)๋ ๊ฑฐ์ ์๋ ์์ด๋ ์น์๋ง ์ฌ์ฉ๋๋ ๊ฐ๋จํ ํด์ ์๋ฒ ์ฌ์ด๋ ์คํฌ๋ฆฝํธ ์ธ์ด์ด๋ค. #include ์ง์๋ฌธ์ ์ฌ์ฉํ์ฌ ํ๋ ์ด์์ ํ์ผ ๋ด์ฉ์ ์น ์๋ฒ์ ์น ํ์ด์ง์ ํฌํจ์ํค๋ ๋ฐ ๊ฐ์ฅ ์ ์ฉํ๋ค. ์ด๋ ์ผ๋ฐ์ ์ผ๋ก ํ์ด์ง ๋จธ๋ฆฌ๊ธ, ํ์ด์ง ๋ฐ๋ฅ๊ธ, ํ์ ๋ฉ๋ด ๋ฑ ์ฌ์ดํธ ์ ๋ฐ์ ๊ฑธ์ณ ๊ณตํต์ ์ผ๋ก ์ฌ์ฉ๋๋ ์ฝ๋ ์กฐ๊ฐ์ผ ์ ์๋ค. SSI์๋ ์กฐ๊ฑด๋ถ ๊ธฐ๋ฅ์ ์ํ ์ ์ด ์ง์๋ฌธ๊ณผ ์ธ๋ถ ํ๋ก๊ทธ๋จ ํธ์ถ์ ์ํ ์ง์๋ฌธ๋ ํฌํจ๋์ด ์๋ค. ์ด๋ ์ํ์น, ๋ผ์ดํธ์คํผ๋, nginx, IIS ๋ฐ W3C์ Jigsaw์์ ์ง์๋๋ค. NCSA HTTPd์ ๋ฟ๋ฆฌ๋ฅผ ๋๊ณ ์๋ค.
์น ์๋ฒ๊ฐ SSI ์ง์ HTML ํ์ผ์ ์ธ์ํ๊ณ ์ด์ ๋ฐ๋ผ ์ด๋ฌํ ์ง์นจ์ ์ํํ๋ ค๋ฉด ํ์ผ ์ด๋ฆ์ด ๊ธฐ๋ณธ์ ์ผ๋ก .shtml, .stm, .shtm๊ณผ ๊ฐ์ ํน์ํ ํ์ผ ํ์ฅ์๋ก ๋๋์ผ ํ๋ค. ๋๋ ์๋ฒ๊ฐ ๋ค์๊ณผ ๊ฐ์ด ๊ตฌ์ฑ๋ ๊ฒฝ์ฐ ์ด๋ฅผ ํ์ฉํ๋ ค๋ฉด ํ์ผ์ ์คํ ๋นํธ๋ฅผ ์ค์ ํด์ผ ํ๋ค.
์ธ๋ถ ๋งํฌ
[ํธ์ง]- Language reference from implementations:
- Apache: Apache mod_include Reference. Calls directives "elements".
- Nginx: Module ngx_http_ssi_module. Calls directives "commands".
- NCSA HTTPd: Original NCSA HTTPd SSI Reference. Calls directives "commands".
- W3C Jigsaw: Server Side Include commands. Calls directives "elements". Highly expanded with servlets, JDBC, HTTP cookie, and loops.