Title: Nginx Mobile Theme
Author: Takayuki Miyauchi
Published: <strong>2013년 11월 8일</strong>
Last modified: 2018년 10월 17일

---

플러그인 검색

![](https://ps.w.org/nginx-mobile-theme/assets/banner-772x250.png?rev=802244)

이 플러그인은 **최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다**. 워드프레스의
좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 
있을 수 있습니다.

![](https://s.w.org/plugins/geopattern-icon/nginx-mobile-theme_f2e0c8.svg)

# Nginx Mobile Theme

 작성자: [Takayuki Miyauchi](https://profiles.wordpress.org/miyauchi/)

[다운로드](https://downloads.wordpress.org/plugin/nginx-mobile-theme.1.8.2.zip)

 * [세부사항](https://ko.wordpress.org/plugins/nginx-mobile-theme/#description)
 * [평가](https://ko.wordpress.org/plugins/nginx-mobile-theme/#reviews)
 *  [설치](https://ko.wordpress.org/plugins/nginx-mobile-theme/#installation)
 * [개발](https://ko.wordpress.org/plugins/nginx-mobile-theme/#developers)

 [지원](https://wordpress.org/support/plugin/nginx-mobile-theme/)

## 설명

This plugin allows you to switch theme according to the User Agent on the Nginx 
reverse proxy.

Nginx Mobile Theme’s requirements are as follows.

 * PHP 5.3 or later
 * WordPress 3.7 or later
 * [Nginx Cache Controller](https://wordpress.org/plugins/nginx-champuru/) 2.0.0
   or later

#### Some Features

 * You can flush mobile’s and pc’s each caches automatically via [Nginx Cache Controller](https://wordpress.org/plugins/nginx-champuru/).
 * Allow you to switch theme according to the user-agent.
 * Allow you to customize multiple mobile device support via filter-hook.

#### Nginx Configuration

Add mobile device detection to the nginx.conf.

    ```
    set $mobile '';
    if ($http_user_agent ~* '(iPhone|iPod|incognito|webmate|Android|dream|CUPCAKE|froyo|BlackBerry|webOS|s8000|bada|IEMobile|Googlebot\-Mobile|AdsBot\-Google)') {
        set $mobile "@smartphone";
    }
    ```

Set proxy_cache_key.

    ```
    proxy_cache_key "$mobile$scheme://$host$request_uri";
    ```

Send custom request header to the backend.

    ```
    proxy_set_header X-UA-Detect $mobile;
    ```

Nginx Mobile Theme will switch theme when ‘@smartphone’ is received in the `$_SERVER['
HTTP_X_UA_DETECT']`.

#### How to use

 1. Please access to the theme-customizer in the WordPress admin area.
 2. Please select Mobile Theme in the drop-down.
 3. Click “Save & Publish” button to save.

#### Multiple mobile device support

 1. Add custom mobile detection to the nginx.conf.
 2. Add custom mobile detection to the WordPress via `nginxmobile_mobile_detects` filter-
    hook.

nginx.conf:
 set $mobile ”; if ($http_user_agent ~* ‘(iPhone|iPod)’) { set $mobile“@
smartphone”; } if ($http_user_agent ~* ‘iPad’) { set $mobile “@tablet”; }

In your custom plugin:
 add_filter(‘nginxmobile_mobile_detects’, function(){ return
array(‘@smartphone’, ‘@tablet’); });

 * As a result, allow you to select theme for @smartphone and @tablet individually
   in the theme-customizer.

#### Amimoto Support

The [Amimoto](http://megumi-cloud.com/) is a full-tuned WordPress AMI on the AWS
EC2.

 * Uncomment /etc/nginx/conf.d/default.conf in line 17

before:
 #include /etc/nginx/mobile-detect;

after:
 include /etc/nginx/mobile-detect;

 * Add line to /etc/nginx/nginx.conf like following.

before:
 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header
Accept-Encoding “”;

after:
 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header
Accept-Encoding “”; proxy_set_header X-UA-Detect $mobile; # add new line

 * Define constant in the wp-config.php
 * define(‘IS_AMIMOTO’, true);

## 스크린샷

[⌊theme-customizer⌉⌊theme-customizer⌉[

theme-customizer

## 설치

 1. Upload `nginx-mobile-theme` to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.

## 후기

이 플러그인에 대한 평가가 없습니다.

## 기여자 & 개발자

“Nginx Mobile Theme”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에
기여하였습니다.

기여자

 *   [ Takayuki Miyauchi ](https://profiles.wordpress.org/miyauchi/)

[자국어로 “Nginx Mobile Theme”(을)를 번역하세요.](https://translate.wordpress.org/projects/wp-plugins/nginx-mobile-theme)

### 개발에 관심이 있으십니까?

[코드 탐색하기](https://plugins.trac.wordpress.org/browser/nginx-mobile-theme/)는,
[SVN 저장소](https://plugins.svn.wordpress.org/nginx-mobile-theme/)를 확인하시거나,
[개발 기록](https://plugins.trac.wordpress.org/log/nginx-mobile-theme/)을 [RSS](https://plugins.trac.wordpress.org/log/nginx-mobile-theme/?limit=100&mode=stop_on_copy&format=rss)
로 구독하세요.

## 변경이력

#### 1.8.1

 * Add query strings mobile=on and mobile=off

#### 1.5.0

 * [Bug fix.](https://github.com/megumiteam/nginx-mobile-theme/compare/1.4.0...1.5.0)

#### 1.4.0

 * [Bug fix.](https://github.com/megumiteam/nginx-mobile-theme/compare/1.3.0...1.4.0)

#### 1.3.0

 * [Bug fix.](https://github.com/megumiteam/nginx-mobile-theme/compare/1.2.0...1.3.0)

#### 1.2.0

 * [Add mobile theme preview.](https://github.com/megumiteam/nginx-mobile-theme/compare/1.1.0...1.2.0)

#### 1.1.0

 * Add support child theme.
 * Add notice when Nginx Cache Controller is not activated.

https://github.com/megumiteam/nginx-mobile-theme/compare/1.0.0…1.1.0

#### 1.0.0

 * first release.

## 기초

 *  버전 **1.8.2**
 *  최근 업데이트: **8년 전**
 *  활성화된 설치 **200+**
 *  워드프레스 버전 ** 3.7.1 또는 그 이상 **
 *  다음까지 시험됨: **4.9.31**
 *  언어
 * [English (US)](https://wordpress.org/plugins/nginx-mobile-theme/)
 * 태그:
 * [mobile](https://ko.wordpress.org/plugins/tags/mobile/)[nginx](https://ko.wordpress.org/plugins/tags/nginx/)
   [smartphone](https://ko.wordpress.org/plugins/tags/smartphone/)[tablet](https://ko.wordpress.org/plugins/tags/tablet/)
   [theme](https://ko.wordpress.org/plugins/tags/theme/)
 *  [고급 보기](https://ko.wordpress.org/plugins/nginx-mobile-theme/advanced/)

## 평점

 별 5점 만점에 5점.

 *  [  2/5-별점 후기     ](https://wordpress.org/support/plugin/nginx-mobile-theme/reviews/?filter=5)
 *  [  0/4-별점 후기     ](https://wordpress.org/support/plugin/nginx-mobile-theme/reviews/?filter=4)
 *  [  0/3-별점 후기     ](https://wordpress.org/support/plugin/nginx-mobile-theme/reviews/?filter=3)
 *  [  0/2-별점 후기     ](https://wordpress.org/support/plugin/nginx-mobile-theme/reviews/?filter=2)
 *  [  0/1-별점 후기     ](https://wordpress.org/support/plugin/nginx-mobile-theme/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/nginx-mobile-theme/reviews/#new-post)

[모든  리뷰 보기](https://wordpress.org/support/plugin/nginx-mobile-theme/reviews/)

## 기여자

 *   [ Takayuki Miyauchi ](https://profiles.wordpress.org/miyauchi/)

## 지원

할 말 있으신가요? 도움이 필요하신가요?

 [지원 포럼 보기](https://wordpress.org/support/plugin/nginx-mobile-theme/)