Ver Mensaje Individual
  #1 (permalink)  
Antiguo 04/06/2012, 22:44
Fenris
 
Fecha de Ingreso: agosto-2008
Mensajes: 271
Antigüedad: 15 años, 8 meses
Puntos: 2
Pregunta 404 Not Found sin VirtualHost

Hola a todos

Quisiera que me ayuden, tengo wamp instalado en mi equipo y tengo unas aplicaciones que estoy trabajando con 2 frameworks distintos y sin usar virtual host, una de estas la estoy desarrollando con Zend Framework y resulta que cuando trato de ingresar me da el error 404 "The requested URL /sistema/auth/login was not found on this server." no quiero utilizar virtual host por que si lo hago no puedo acceder a mi otra aplicacion y no quiero crear un virtualhost por cada aplicacion que este trabajando, entonces tengo la siguiente estructura.
sistema
|---Application
|---Library
|--public
index.php

Segun vi por ahi de pasadita con esta estructura ya no es necesario tener un index y un htaccess en public.

index.php [dir raiz]
Código PHP:
Ver original
  1. <?php
  2.  
  3. // Define path to application directory
  4. defined('APPLICATION_PATH')
  5.     || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/application'));
  6.  
  7. // Define application environment
  8. defined('APPLICATION_ENV')
  9.     || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));
  10.  
  11. // Ensure library/ is on include_path
  12. set_include_path(implode(PATH_SEPARATOR, array(
  13.     realpath(APPLICATION_PATH . '/../library'),
  14.     realpath(APPLICATION_PATH . '/../library/dompdf/'),
  15. )));
  16.  
  17. date_default_timezone_set('Chile/Continental');
  18.  
  19. /** Zend_Application */
  20. require_once 'Zend/Application.php';
  21.  
  22. // Create application, bootstrap, and run
  23. $application = new Zend_Application(
  24.     APPLICATION_ENV,
  25.     APPLICATION_PATH . '/configs/application.ini'
  26. );
  27. $application->bootstrap()
  28.             ->run();

El Punto es que no arranca la aplicacion en vez de mostrarme el form de login me muestra error 404 ojala puedan ayudarme.