|
|||
|
Hi folks!
I can get responce from the index controller, but nothing else. I've tried modifying the httpd.config, renamed the .htaccess file and nothing works. The default index controller is the only thing working. I know that the rewrite module is loaded (via server-information), however I'm not sure how to properly "connect" Apache to the web application. What's pussles me is the relation between a project in Zend Studio for Eclipse and the Apache web server. Is there any "link" set up by the development environment? If not how do I give the web server access to my application? Using VirtualHost directive? Using Directory or Location directives? Well I'm totally lost ![]() Thanks for any tip! |
|
|||
|
More info is needed. That fact that the default index controller works suggests to me that the problem is not with your rewrite, but that you are not entering the URL correctly to route to your controllers, or that you are naming something incorrectly.
What is your file structure, what are you using as the URL for a controller that does not work, what are you using as the URL for the default index controller, what are you using for the class name of a controller that does not work, etc... |
|
|||
|
Hello,
My applications users default library structure created by Zend Studio for Eclipse, i.e ProjectName |-application |-html |-library The project is located in a directory outside the web server. What I've done is to "point" to the html folder using the Location directive in http.config (apache) <Location /erimail> RewriteEngine on Order deny,allow Allow from all </Location> Alias /erimail "C:/Documents and Settings/Harald/Zend/workspaces/DefaultWorkspace/erimail 0.5.1/html" When going to http://localhost:8080/erimail/ I get responce from the index controller, however any other url fails, stating the url is not valid. In desperation I copied the same project (withount any modifications) to a subdir "em" of the Apache htdocs folder. Now I can issue: http://localhost:8080/em/html/ or http://localhost:8080/em/html/index and they both fires the index action, just as it shoud. OK, so everyting seems to work when I coiped the project into the Apache document root folder, but i'll guess it should work without that if I manage to get my configuration correctely. Btw: I'm using Zend Core, i.e. PHP and Apache configuration is setup by the Zend Core stuff. Thanks! |
|
|||
|
the index.php file needs to be within your webroot. if you have your index.php file in the html directory, as the default structure dictates, then the html directory should be within your webroot.
the application, library, and other such directories should be placed outside the webroot. Last edited by jweber : 06-22-2008 at 04:08 PM. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|