묻고답하기

/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 남기남
namuino 동영상클립 두개를 원하는것부터 실행 [2] 2007.08.10
히스 방명록만들기 난이도 있는거 강좌 잘된사이트좀 알려주세요..  
김대수 TextArea 내의 스크롤바를 제거하는법은..  
김준호 제로보드를 둘러싼 테두리가 깨짐니다.  
양원석 홈피 폐쇠 소켓php를만들었는데 admin.php에서 확인누를때구현에서 막혔습니다.  
EmulBoy 플래쉬에서 한글폰트가 안써져요! ㅠ_-  
엘다 트래픽 나타내는 함수에서 이런 오류가 납니다. [1] 2007.08.10
박재현 이런건 어떻게 만들죠? [1] 2007.08.10
php초보 메뉴소스 수정해 주실분 없을까요? [1] 2007.08.10
php초보 a href 태그 질문이요 [1] 2007.08.10
아루 이렇게 만들고 싶은데요... 도와주세요.  
_영수_ SELECT BOX로 데이터 검색 [1] 2007.08.10
김명규 파일 업로드가 안되요 도와주세요 소스 어디가 틀린건지  
handsh10 IIS구동시 웹상에서 하위 계정 추가.  
포토샵필터 레이어에 스크롤바 넣는거..  
임헌정 이런 프로그램 어디서 구하는지 하시는지요 ??? [3] 2007.08.10
클린아이 이런식으로 링크 메뉴 클릭시  
하루 xml 간단한 질문요^^  
최계영 플래시 질문인데요... [1] 2007.08.10
밥아저씨 DNS 좀 알려주세요~ ㅠㅠ  
고슴도치 테이블 안에 있는 그림 고정시키는 방법이 뭐에요?  
아가페 zboard에서 헤더와 푸터파일을 필요에 따라 안보이게 하고싶은데 [1] 2007.08.10
오현 아시는 분은 좀 갈켜주세요...  
최오규 쉬운 질문인것 같은데요.. (한번 봐주세요) [3] 2007.08.10
양수철 시노부 플레이어 자동 시작 안되게 할 수 있을까요?  
장일수 페이지를 넘기면 노래가 새로떠요 ~ ㅡㅡ 연이어서 뜰라면 어떻케요 ?  
Euna winAPM 에 PHP 버젼 업그래이드 어떻게 하나요?  
최병도 웹페이지가 안보여요(외국 호스팅업체) [3] 2007.08.10
Kwas IF문 질문입니다. [3] 2007.08.10
김윤희 업로드 질문이요 [2] 2007.08.10