nginx 쓰는데, A레코드 추가해서 사이트 하나 더만들고 있는데 자꾸 다운로드 되면서 연결이 안됩니다.

 

conf 추가후 홈디렉터리까지 연결했는데 뭐가 다운됩니다.

 

권한문제도 아닌것같은데 다운되는 내용은 아래 내용입니다.

 

<?php
/**
 * -----------------------------------------------------------------------------
 * 
 *        R H Y M I X  :  C O N T E N T  M A N A G E M E N T  S Y S T E M
 * 
 *                            https://www.rhymix.org
 * 
 * -----------------------------------------------------------------------------
 * 
 *  Copyright (c) Rhymix Developers and Contributors <[email protected]>
 *  Copyright (c) NAVER <http://www.navercorp.com>
 * 
 *  This program is free software: you can redistribute it and/or modify it
 *  under the terms of the GNU General Public License as published by the Free
 *  Software Foundation, either version 2 of the License, or (at your option)
 *  any later version.
 * 
 *  This program is distributed in the hope that it will be useful, but WITHOUT
 *  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 *  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
 *  more details.
 * 
 *  You should have received a copy of the GNU General Public License
 *  along with this program. If not, see <http://www.gnu.org/licenses/>.
 * 
 * -----------------------------------------------------------------------------
 * 
 *  Rhymix is a derivative work of XpressEngine (XE) version 1.x.
 *  The license has been changed from LGPL v2.1 to GPL v2 in accordance with
 *  section 3 of LGPL v2.1. This change is irreversible and applies to all of
 *  Rhymix, including parts that were copied verbatim from XpressEngine.
 * 
 * -----------------------------------------------------------------------------
 */

/**
 * Include the autoloader.
 */
require dirname(__FILE__) . '/common/autoload.php';

/**
 * @brief Initialize by creating Context object
 * Set all Request Argument/Environment variables
 **/
Context::init();

/**
 * @brief Initialize and execute Module Handler
 **/
$oModuleHandler = new ModuleHandler();
$oModuleHandler->init() && $oModuleHandler->displayContent($oModuleHandler->procModule());

Context::close();

/* End of file index.php */
/* Location: ./index.php */
 

 

 

URL: stock.24post.co.kr 접속시 다운로드됩니다. 

  • ?

    nginx 에서 php-fpm 등 설정을 안하신거 같네요^^

    nginx.conf 나 버츄얼 호스트 설정 파일을 보여주세요.

  • ? ?

    dd.PNG

     

    conf 내용입니다.!

  • ? ?
    아래 람보님이 알려주신 링크에서 보듯이
    # location 구문을 사용하는 다른 설정은 반드시 라이믹스 rewrite 규칙보다 나중에 선언해야 합니다.
    location ~ \.php$ {
    fastcgi_pass unix:/run/php/php7.4-fpm.sock; # PHP-FPM을 유닉스 소켓으로 연동하는 경우
    fastcgi_pass 127.0.0.1:9000; # PHP-FPM을 로컬 포트로 연동하는 경우
    include snippets/fastcgi-php.conf;
    }
    이러한 .php 확장자에 대한 연동 설정이 필요합니다.
    nginx + php-fpm 등으로 검색하셔서 참고하세요!!
  • profile

    php가 연결이 안된것 같습니다.

    해당 PHP부터 nginx 연동세팅 먼저 해주세요.

    단순 코드로는 답변드리기 어렵고, php-fpm관련 연동 설정을 구글에서 검색하여 처리하시면 될 것 같아요.

     

    https://github.com/rhymix/rhymix-docs/blob/master/ko/introduction/nginx.md