사전 요구 사항1. Nginx latest 를 official repository 로부터 설치 nginx.org/en/linux_packages.html#mainline2. 사전요구 패키지 설치 * Ubuntu$ apt-get install -y apt-utils autoconf automaker build-essential git libcurl4-openssl-dev libgeoip-dev liblmdb-dev ibpcre++-dev lib tool libxml2-dev libyans-dev pkgconf wget zlib1g-dev * CentOS$ yum groupinstall -y "Development Tools"$ yum install -y http httpd-devel pure pure-de..
NginX 는 중첩 if 문(if 문 안에 또 if문)을 허용하지 않기에아래처럼 변수에 값을 할당하고 합한것을 마지막에 비교하는 방식으로 조건문을 설정한다.location ~ \.php$ { # Open CORS set $openCORS N; # *.도메인.com 이면 변수에 D 할당 if ($http_origin ~* (https?://[^/]*\.도메인\.com(:[0-9]+)?)) { set $openCORS "D"; } set $request_url $request_uri; if ($request_uri ~ ^/api/(.*)$) { set $openCORS "${openCORS}+API"; } if ($openCORS = "D+API") { add_header 'Access-Control-All..
http://stackoverflow.com/a/19302688 server { server_name www.mysite2.name; return 301 $scheme://mysite2.name$request_uri; } server { #This config is based on https://github.com/daylerees/laravel-website-configs/blob/6db24701073dbe34d2d58fea3a3c6b3c0cd5685b/nginx.conf server_name mysite2.name; # The location of our project's public directory. root /usr/share/nginx/mysite2/live/public/; # Point in..
- Total
- Today
- Yesterday
- laravel
- iis
- Mac
- Prototype
- API
- git
- iphone
- javascript
- IE
- Docker
- 워드프레스
- ASP
- Android
- IOS
- classic asp
- Wordpress
- centos
- JQuery
- JSON
- PHP
- 한글
- Debug
- nginx
- 안드로이드
- mssql
- Linux
- sencha touch
- CSS
- nodejs
- macos
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 |