Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [SYMFONY] Bład 403
Vion
post
Post #1





Grupa: Zarejestrowani
Postów: 112
Pomógł: 2
Dołączył: 27.06.2008

Ostrzeżenie: (0%)
-----


Witama
Wrzuciłem pliki na serwer home.pl i gdy przechodzę pod podany adres symfony/web/app_dev.php wyrzuca mi błąd 403. Ustalilem chmod w plikach app/config i app/logs na 777
Czy o czymś zapomniałem ?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Vion
post
Post #2





Grupa: Zarejestrowani
Postów: 112
Pomógł: 2
Dołączył: 27.06.2008

Ostrzeżenie: (0%)
-----


mam tam coś takiego

  1. if (!in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1','::1',)) && substr($_SERVER['HTTP_HOST'], -14) != '.home.internal' ) {
  2.  
  3. header('HTTP/1.0 403 Forbidden');
  4. exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
  5. }
Go to the top of the page
+Quote Post
Szymciosek
post
Post #3





Grupa: Zarejestrowani
Postów: 1 168
Pomógł: 126
Dołączył: 5.02.2010
Skąd: Świdnica

Ostrzeżenie: (0%)
-----


Cytat(Vion @ 7.11.2012, 20:18:12 ) *
mam tam coś takiego

  1. if (!in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1','::1',)) && substr($_SERVER['HTTP_HOST'], -14) != '.home.internal' ) {
  2.  
  3. header('HTTP/1.0 403 Forbidden');
  4. exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
  5. }



  1. if (!in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1','::1', 'xxx.xxx.xxx.xxx')) && substr($_SERVER['HTTP_HOST'], -14) != '.home.internal' ) {
  2.  
  3. header('HTTP/1.0 403 Forbidden');
  4. exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
  5. }


gdzie xxx to Twój adres ip. http://whatismyipaddress.com/
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 4.10.2025 - 06:49