cake-php
[Arriba] [Todas las Listas]

Auth Redirige asunto en mi compartido hosting

To: cake-php@xxxxxxxxxxxxxxxx
Subject: Auth Redirige asunto en mi compartido hosting
From: bugoy <asdfbugoy@xxxxxxxxx>
Date: Fri, 14 Jun 2013 13:16:51 -0700 (PDT)
Delivery-date: Fri, 14 Jun 2013 16:17:06 -0400
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=x-beenthere:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type; bh=Oyh85Te/hCU5bMBCwbHAlANC+rE47sSJQzdXGp8yk3E=; b=JNHqr3SLz1QrOo8dUghZPNOxEI5ntDamrpJ7FDmKdAAKleZsvFyHYAlET2/2a3AmnC Juz2uBTQp4VrI3TebWVQjq92EcGvu9Nk4doBQN/Fi4+eaAtIYiJRr2QrM/J+ZGbMlBCT NgWOKV8MtPVhAhCNVr4jq/5FB8BLyWTgZ7tShjNL5zInukn0Ejp9uSUW4XycNzXqhG5A CFyFGhxRAcv+y0ovbrJpBvEFZQ2oZVNci6n1qhVnQZM5sUUSaUW2kV9G6V9HPpuqsFq5 Xsw2s62n7kaHVHbYNXG6pQpWmiXgZhi2GH6C36XspkoxnuFJwkH69RBTsxarJ9ZAF1pg 68gg==
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-beenthere:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type; bh=Oyh85Te/hCU5bMBCwbHAlANC+rE47sSJQzdXGp8yk3E=; b=1DYIEPf2coXNo2wpDrLQgvEDXIs9xql8TXplyue3CYZNCBzFk8WNLB4BsiS+QisdKl s+XGiIEwbnkPsFOWnV0GufogGmmMsyhy2bZ5HzeVT6fIjubKEr//S9ZIGjXHeCqdLks8 WSGvlzcix//33bdDzFIN1/bJGm984CiBFs1QY2YiH5h1+SE6cpKDAyDs2ILkYQ4tlyDO PaXk9Mqw4mlBmERpxpZkxHJoNaRCMktZnuYhntHwWFSK1JEj5OrFzjjv5tEmjhHFFlEg kIE22BwhKyclQcIsgx+46hKsqaJsKa/LuxzfXrA1BsOLEZ3ypSI16VIbWdSSyJO68sk+ bvpA==
Envelope-to: traductor@xxxxxxxxxxx
List-archive: <http://groups.google.com/group/cake-php>
List-help: <http://groups.google.com/support/>, <mailto:cake-php+help@googlegroups.com>
List-id: <cake-php.googlegroups.com>
List-post: <http://groups.google.com/group/cake-php/post>, <mailto:cake-php@googlegroups.com>
List-subscribe: <http://groups.google.com/group/cake-php/subscribe>, <mailto:cake-php+subscribe@googlegroups.com>
List-unsubscribe: <http://groups.google.com/group/cake-php/subscribe>, <mailto:googlegroups-manage+1003367825667+unsubscribe@googlegroups.com>
Mailing-list: list cake-php@xxxxxxxxxxxxxxxx; contact cake-php+owners@xxxxxxxxxxxxxxxx
Reply-to: cake-php@xxxxxxxxxxxxxxxx
Sender: cake-php@xxxxxxxxxxxxxxxx
*Hi Todo,

   Mi sitio es www.rowiebugoy.com. Desde mi *cakephp es *setup en 
/público_*html/producción/*rowiebugoy tan *i creado .*htaccess En /público_*html/ 
señalando a él. Mis trabajos de sitio bien ahora. Entonces *i añadió *Auth para mi *admin 
www.rowiebugoy.com/*admin. Todo está trabajando aun así me redirige a . 

*http://Www.rowiebugoy.com/producción/*rowiebugoy/*www/*admin/usuarios/*login

justo tendría que ser en 

*http://www.rowiebugoy.com/*admin/usuarios/*login

archivos *i modificó:

/público_*html/.*htaccess

*AddHandler Aplicación/*x-*httpd-*php53 .*php
*RewriteEngine En
*RewriteCond#unknown{^*HTTP_ANFITRIÓN} ^(*www.)?*rowiebugoy.*com$
*RewriteCond#Nom_*URI} !^/Producción/*rowiebugoy/*www/
*RewriteCond#nom_*FILENAME} !-*f
*RewriteCond#Nom_*FILENAME} !-*d
*RewriteRule ^(.*)$ /Producción/*rowiebugoy/*www/$1
*RewriteCond#unknown{^*HTTP_ANFITRIÓN} ^(*www.)?*rowiebugoy.*com$
*RewriteRule ^(/)?$ Producción/*rowiebugoy/*www/índice.*php [*L]

/Público_*html/producción/*rowiebugoy/*app/*Plugin/*Admin/Controlador/*AdminAppController.*php

<?*php

*App::Usos('*AppController', 'Controlador');

clase *AdminAppController extiende *AppController
#adj_nom_nom $de componentes = públicos(
'Sesión','Galleta',
'*Auth' => variedad(
'*loginAction' => '/*admin/usuarios/*login',
'*authenticate' => variedad('*PBKDF2'),
'*authError' => 'eres actualmente no *logged dentro.'));
 Función pública *beforeFilter()
#nom::*beforeFilter();
$esto->*layout = '*default';
$esto->conjunto('usuario',$esto->*Auth->usuario());
}
}

*i modificó *loginAction a /*admin/usuarios/*login pero todavía él *doesnt trabajo.

Qué más falta o *i necesidad de añadir?

*Thanks,
Francis

-- 
Gustarnos en *FaceBook *https://www.facebook.com/*CakePHP
nos Encuentra en *Twitter *http://*twitter.*com/*CakePHP

--- 
Recibiste este mensaje porque eres *subscribed al *Google Grupos "*CakePHP" grupo.
A *unsubscribe de este grupo y la parón que recibe *emails de él, enviar un *email a pastel-*php+unsubscribe@xxxxxxxxxxxxxxxx.
A correo a este grupo, envía *email a pastel-php@xxxxxxxxxxxxxxxx.
Visita este grupo en *http://grupos.*google.*com/Pastel/de grupo-*php.
Para más opciones, visita *https://grupos.*google.*com/Los Grupos/optan_fuera.


Hi all,

   My site is www.rowiebugoy.com. since my cakephp is setup in 
/public_html/production/rowiebugoy so i created .htaccess in /public_html/ 
pointing to it. my site works fine now. Then i added Auth for my admin 
www.rowiebugoy.com/admin. All is working however it redirects me to . 

http://www.rowiebugoy.com/production/rowiebugoy/www/admin/users/login

should just be in 

http://www.rowiebugoy.com/admin/users/login

files i modified:

/public_html/.htaccess

AddHandler application/x-httpd-php53 .php
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?rowiebugoy.com$
RewriteCond %{REQUEST_URI} !^/production/rowiebugoy/www/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /production/rowiebugoy/www/$1
RewriteCond %{HTTP_HOST} ^(www.)?rowiebugoy.com$
RewriteRule ^(/)?$ production/rowiebugoy/www/index.php [L]

/public_html/production/rowiebugoy/app/Plugin/Admin/Controller/AdminAppController.php

<?php

App::uses('AppController', 'Controller');

class AdminAppController extends AppController {
public $components = array(
'Session','Cookie',
'Auth' => array(
'loginAction' => '/admin/users/login',
'authenticate' => array('PBKDF2'),
'authError' => 'You are currently not logged in.'));
 public function beforeFilter() {
parent::beforeFilter();
$this->layout = 'default';
$this->set('user',$this->Auth->user());
}
}

i modified loginAction to /admin/users/login but still it doesnt work.

what else is missing or i need to add?

Thanks,
Francis

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@xxxxxxxxxxxxxxxx.
To post to this group, send email to cake-php@xxxxxxxxxxxxxxxx.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.


<Anterior por Tema] Tema Actual [Siguiente por Tema>
  • Auth Redirige asunto en mi compartido hosting, bugoy <=