묻고답하기

/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 남기남
왕바우 내용 집접 추가 편집기에서 크기조절...? file  
시드2 댓글 글자를 굵게 하고 싶습니다. file  
dudwns183 첫화면에 로그인만있구 로구인하면 메인으로 가는방법(내용수정) [2] 2010.04.14 by klaist
kuksys 게시판 첨부파일 저장 폴더 지정가능한가요?  
㎯하루€oz Something worng with your request ... 메세지가 자꾸 나옵니다..  
성엽 miniShop 설치  
무비클립 페이지 모듈에 게시판 불러오기는 안되나요?  
Bokmani 언어 변경이 안됩니다.  
라펠 쪽지 작성시 내용에 기본값  
박민하323 웹폰트를 적용하고 싶습니다. EOT 파일은 만들었는데요 이후 설명 좀 꼭 부탁드리겠습니다. ㅠ [1] 2010.04.14 by 공듀
xwony 쌩초보인데요, 어떻게 해야될지 모르겠어요 [1] 2010.04.15 by 휘즈
raystorm index 파일에서 시작페이지 변경가능할까요? [1] 2010.04.15 by 휘즈
김정수11 레이아웃, 메뉴 추가 시 문제 있는부분 질문 드립니다  
hjpkorea 게시판확장변수에 html 코드가 먹히게 하려면? file  
sean_kim 사용하시려는 DB 선택 후  
아트맨 초기 xe인증화면이 계속뜨네요?? [1] file 2010.04.15 by 황비
이름이름 안녕하세요 관리자페이지에서 [1] file 2010.04.15 by 황비
winter23 분류(카테고리) 제목이 아래로 잘립니다... --; file  
진승현 datepicker 오작동 file  
최창준286 최고관리 권한 회수