Nginx 배포 아파 치

652 단어

    #         .htaccess   
    AllowOverride none
    Allow from all
    
    Options +FollowSymLinks
    RewriteEngine On

    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]



  location / {    #    ,    
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Host $host;
        proxy_pass http://127.0.0.1:8098;
        #try_files $uri $uri/ /index.php;
        #try_files $uri $uri/ /index.php?$query_string;
        #return 200 $request_uri; 
    }

좋은 웹페이지 즐겨찾기