묻고답하기

/etc/nginx/conf.d

의 default.conf 파일을 고쳤습니다.



server {

listen 80;
root /home/site/public_html;
server_name site.com www.site.com;
include php.conf;
include rewrite_xe.conf;
include security.conf;

location / {
index index.php index.html index.htm;
}
location /files/attach
 {
                         default_type    application/octet-stream;
 
                        location ~ \.php$
                        {
                                break;
                        }
                }
deny 113.12.0.0/16;




#location /cgi-bin {
location ~ \.cgi|pl$ {
	gzip off;
	root /home/site/public_html;
#fastcgi_pass unix:/var/run/nginx/cgiwrap-dispatch.sock;
	fastcgi_pass  unix:/var/run/fcgiwrap.socket;
	include fastcgi_params;
	fastcgi_param SCRIPT_FILENAME /home/site/public_html$fastcgi_script_name;
}


#location /ff {
#	include proxy.conf;
#	proxy_pass   http://127.0.0.1:8000;
#}








}

server {

listen 80;
root /home/sitetest/public_html;
server_name test.site.com www.test.site.com;
include php.conf;
include rewrite_xe.conf;
include security.conf;

location / {
index index.php index.html index.htm;
}
location /files/
 {
                         default_type    application/octet-stream;
 
                        location ~ \.php$
                        {
                                break;
                        }
                }
deny 113.12.0.0/16;

#location /cgi-bin {
location ~ \.cgi|pl$ {
	gzip off;
	root /home/sitetest/public_html;
#fastcgi_pass unix:/var/run/nginx/cgiwrap-dispatch.sock;
	fastcgi_pass  unix:/var/run/fcgiwrap.socket;
	include fastcgi_params;
	fastcgi_param SCRIPT_FILENAME /home/sitetest/public_html$fastcgi_script_name;
}


#location /ff {
#	include proxy.conf;
#	proxy_pass   http://127.0.0.1:8000;
#}



}




server {

listen 80;
root /home/sitetest2/public_html;
server_name test2.site.com www.test2.site.com;
include php.conf;
include rewrite_xe.conf;
include security.conf;

location / {
index index.php index.html index.htm;
}
location /files/
 {
                         default_type    application/octet-stream;
 
                        location ~ \.php$
                        {
                                break;
                        }
                }
deny 113.12.0.0/16;

#location /cgi-bin {
location ~ \.cgi|pl$ {
	gzip off;
	root /home/sitetest2/public_html;
#fastcgi_pass unix:/var/run/nginx/cgiwrap-dispatch.sock;
	fastcgi_pass  unix:/var/run/fcgiwrap.socket;
	include fastcgi_params;
	fastcgi_param SCRIPT_FILENAME /home/sitetest2/public_html$fastcgi_script_name;
}


#location /ff {
#	include proxy.conf;
#	proxy_pass   http://127.0.0.1:8000;
#}



}



위와같이 설정했습니다.


site.com 은 원래 잘써왔구요


sitetest.com 은 예전에 저렇게 등록시켜놓고 있다가 이번에 서버에사용자추가하고 연결하니 잘되더라구요


근데


sitetest2.com 요놈이 말썽이네요 아무리 해도 안됩니다.. ㅜㅜ


혹시 추가로 더 해야할것이 있나요? 


p.s dns설정은 다 해줬습니다 ㅜ.


글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
키스미베이베 nginx 에서 도메인 추가하는법좀 가르쳐주세요.. [1] 2014.02.28 by 키스미베이베
상취쌈 상단중앙에 사이트제목 어떻게 넣는가요? [1] 2014.02.28 by 키스투엑스이
여우별다솜 SSL관련 2가지 질문이있습니다. [10] 2014.02.28 by 키스투엑스이
상취쌈 스마트폰에 모바일뷰가 뜨게하려면 어떻게 해야하나요? [2] 2014.02.27 by 상취쌈
여우별다솜 ssl 선택적사용시 ssl연결안되는문제 [3] 2014.02.27 by 여우별다솜
nado0124 PC에서 접속할 때와 모바일로 접속할 때 '홈 페이지'를 다르게 할 수 있는지요? [5] 2014.02.27 by nado0124
Josh kim993 안녕하세요, XE 초짜 질문올립니다. ^^ [3] 2014.02.27 by LI-NA
초코파이 페이지 관리 에서 기본 페이지 선택하는 방법 [2] 2014.02.27 by 초코파이
밤토실 _getContent method is not exists 무슨 오류인가요? [5] 2014.02.27 by 키스투엑스이
여우별다솜 ssl항상사용으로 체크하면 https://http://도메인 형식으로 요청됩니다 [2] 2014.02.27 by 여우별다솜
서은석985 1.7.4 버전 업데이트 후 ...  
그누와엑스이 예전에 송동우님께 답변받은적있는데; 답변을까먹었네요 ㅠㅠ 질문D [1] 2014.02.27 by 그누와엑스이
Summer getUrl('','','','','')에서 홈페이지주소도 출력하게끔 못하나요?  
남남이 제로보드 관리자 아이디가 생각이 안나요 재설치는 어떻게 하나요? [1] 2014.02.27 by KrteamENT
syota7942 XE 사용중 PC를 변경 하였습니다. [2] 2014.02.27 by syota7942
여우별다솜 어드민페이지에서 SSL사용체크하면 SSL연결이안됩니다. [2] 2014.02.27 by 여우별다솜
rainnovel 심플스트랩 관련 질문이에요 @윈컴이 [2] 2014.02.27 by rainnovel
A-charm 스케치북5 r13 모바일 더이상 수정이안되네요? [1] 2014.02.27 by LI-NA
정태환2 xe 설치가 안되네요... [4] file 2014.02.27 by 푸시아
치즈도둑 1.7.4 업데이트 후 [1] 2014.02.27 by xe_마니
라피에르 1.7.4에서 썸네일 위치 상단으로 고정 변경 다들 되시나요? [2] 2014.02.27 by love0220
나바보 쓸데없는 공간높이 줄이기는 어떻게 하나요? [3] file 2014.02.27 by 나바보
몽실아빠 갑자기 회원가입이 되질 않습니다. [2] 2014.02.27 by 몽실아빠
moonsoo 비밀번호 찾기, 인증메일 재발송 링크 수정 file  
BJ람보 procBoardInsertDocument 의 documnet_srl 구하는 방법. [6] 2014.02.27 by BJ람보
보소보소 쇼핑몰 누리고 업데이트 버젼에 대해서..  
danielpark 누리고 쇼핑몰 업데이트해도 괜찮을까요? [4] file 2014.02.27 by danielpark
어라얼랑 레이아웃 삭제 방법알려주세요 [8] file 2014.02.27 by 어라얼랑
아로미 비밀번호 넣으면 열리는 게시판은 없나요? [2] 2014.02.27 by 아로미
치즈도둑 공사중 에드온 [1] 2014.02.27 by 마음의빈자리