2013-08-16 3 views
0

아파치 설정에 문제가 있습니다. 내 로컬 호스트에리디렉션이 작동하지 않습니까?

return $this->redirect('ex::dashboard'); 

완벽하게 실행됩니다.

하지만 코드를 서버에 업로드 할 때. 빈 페이지로 끝납니다.

어떤 이유가있을 수 있습니까? 나는 디버깅을 시도했지만 성공하지 못했다.

나는 서버에 액세스하여 대부분의 PHP 매개 변수를 확인했습니다.

'./configure' '--disable-fileinfo' '--disable-pdo' '--enable-bcmath' 
'--enable-calendar' '--enable-exif' '--enable-ftp' '--enable-gd-native-ttf' 
'--enable-libxml' '--enable-mbstring' '--enable-soap' '--enable-sockets' 
'--enable-zip' '--prefix=/usr/local' '--with-apxs2=/usr/local/apache/bin/apxs' 
'--with-curl=/opt/curlssl/' '--with-freetype-dir=/usr' 
'--with-gd' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' 
'--with-jpeg-dir=/usr' '--with-kerberos' '--with-libdir=lib64' 
'--with-libxml-dir=/opt/xml2' '--with-libxml-dir=/opt/xml2/' 
'--with-mcrypt=/opt/libmcrypt/' '--with-mysql=/usr' 
'--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-openssl=/usr' 
'--with-openssl-dir=/usr' '--with-pcre-regex=/opt/pcre' 
'--with-pic' '--with-png-dir=/usr' '--with-xpm-dir=/usr' 
'--with-zlib' '--with-zlib-dir=/usr' 

에 LocalHost이

Server API Apache 2.4 Handler Apache Lounge 

가 전용 서버가

Server API CGI/FastCGI 

이 차이를 만들 것

한 가지 차이점이있다?

코드 : L33에서

https://github.com/nilamdoc/vc.co.uk/blob/master/app/controllers/SessionsController.php#L33 

그것을 나는 또한

header('Location: https://' . $_SERVER['SERVER_NAME']."/ex/dashboard"); 

을 시도

대시 보드 페이지로 리디렉션해야하지만 리디렉션하지 않았다

답변

0

다음 감안할 때 :

이 리튬 질문하지 않습니다 ...

(10)는 또한

header('Location: https://' . $_SERVER['SERVER_NAME']."/ex/dashboard");

을 시도하지만

리디렉션하지 않았다.

아파치가 맞습니까? 이것 :

Server API CGI/FastCGI 

... 나타낼 것 같지 않습니다.

관련 문제