Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-22-2008, 12:12 PM
Junior Member
 
Join Date: Jun 2008
Posts: 3
Default rewrite problem? - How does it all fit together?

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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-22-2008, 01:43 PM
Member
 
Join Date: Jun 2008
Location: Florida
Posts: 88
Default

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...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-22-2008, 03:10 PM
Junior Member
 
Join Date: Jun 2008
Posts: 3
Default

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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 06-22-2008, 04:04 PM
Member
 
Join Date: Jun 2008
Location: Florida
Posts: 88
Default

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 06-22-2008, 05:05 PM
Junior Member
 
Join Date: Jun 2008
Posts: 3
Default

Hi, Thank's for letting me know!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:03 AM.