묻고답하기

/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 남기남
rainnovel 심플스트랩 관련 질문이에요 @윈컴이 [2] 2014.02.27 by rainnovel
여우별다솜 어드민페이지에서 SSL사용체크하면 SSL연결이안됩니다. [2] 2014.02.27 by 여우별다솜
syota7942 XE 사용중 PC를 변경 하였습니다. [2] 2014.02.27 by syota7942
남남이 제로보드 관리자 아이디가 생각이 안나요 재설치는 어떻게 하나요? [1] 2014.02.27 by KrteamENT
Summer getUrl('','','','','')에서 홈페이지주소도 출력하게끔 못하나요?  
그누와엑스이 예전에 송동우님께 답변받은적있는데; 답변을까먹었네요 ㅠㅠ 질문D [1] 2014.02.27 by 그누와엑스이
서은석985 1.7.4 버전 업데이트 후 ...  
여우별다솜 ssl항상사용으로 체크하면 https://http://도메인 형식으로 요청됩니다 [2] 2014.02.27 by 여우별다솜
밤토실 _getContent method is not exists 무슨 오류인가요? [5] 2014.02.27 by 키스투엑스이
초코파이 페이지 관리 에서 기본 페이지 선택하는 방법 [2] 2014.02.27 by 초코파이
Josh kim993 안녕하세요, XE 초짜 질문올립니다. ^^ [3] 2014.02.27 by LI-NA
nado0124 PC에서 접속할 때와 모바일로 접속할 때 '홈 페이지'를 다르게 할 수 있는지요? [5] 2014.02.27 by nado0124
여우별다솜 ssl 선택적사용시 ssl연결안되는문제 [3] 2014.02.27 by 여우별다솜
상취쌈 스마트폰에 모바일뷰가 뜨게하려면 어떻게 해야하나요? [2] 2014.02.27 by 상취쌈
여우별다솜 SSL관련 2가지 질문이있습니다. [10] 2014.02.28 by 키스투엑스이
상취쌈 상단중앙에 사이트제목 어떻게 넣는가요? [1] 2014.02.28 by 키스투엑스이
키스미베이베 nginx 에서 도메인 추가하는법좀 가르쳐주세요.. [1] 2014.02.28 by 키스미베이베
꾸링 회원 프로필이 수정이 되질 않습니다.  
coko 업데이트 대해 질문입니다 [2] 2014.02.28 by coko
하하하3080 스케치북유투브 게시판 모듈에서 글쓰고 보면 홈페이지 메인이 본문에 들어가 버리네요...ㅠ [1] file 2014.02.28 by ForHanbi
착한악마 확장변수의 기본값 불려오는 방법 [1] file 2014.02.28 by 착한악마
애니즌 start SSL 연장 방법.. [8] 2014.02.28 by 애니즌
shockk 레이아웃에 배경화면 설정을 했더니 게시판이 안예쁘게 보이는데.. [4] file 2014.02.28 by shockk
ㅋ1112313 XE 외부도메인 로그인문제.. 아직 해결이 안됐나요 ?  
shockk 스케치북 게시판 웹진형 공지 글 제목 배경 색 바꿀 수 있나요? file  
안드로이더스스 유쳇 접속자 감추기  
죽림거사 게시물 출력 에러에 관한 문의 [3] 2014.02.28 by 죽림거사
PodongS2 동영상 자동 리사이징 질문드립니다.. [3] 2014.02.28 by 마음의빈자리
임실치즈 누리고 위젯설정 및 주문조회 게시판 ..  
socialskyo 위젯페이지가 페이지 모듈목록에는 있는데 사이트맵에서는 안보입니다.