I simply began learning Zend. I handled to obtain the fundamental working (using zf create project) during my local web server. Let us just say my project is known as square

The only real .htaccess which i have: square/public/.htaccess

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]


DocumentRoot "/home/amree/web"

<Directory />
    Options FollowSymLinks
    AllowOverride All
    Order deny,allow
    Deny from all

<Directory "/home/amree/web">
    Options Indexes FollowSymLinks
    AllowOverride all
    Order allow,deny
    Allow from all

NameVirtualHost square
<VirtualHost square>
    DocumentRoot "/home/amree/web/square/public"
    ServerName square

hosts               square

I am running my application on Linux.

From what I have collected, I'm able to open (loaded with no problems) the website using:

However I can't open it up using:

I additionally produce other web programs within the same web server. For instance, the meh application could be opened up using but can't be opened up using http://square/meh

My real question is, how do i load my Zend application without getting problems with other programs within the same server? Right now, I favor being able to access it using my local IP ( It ought to be easy to open it up from another computer within the same network.

So, ultimately I ought to have the ability to load the Zend project using


And I'm also able to open my other meh application using

Thanks ahead of time.

You can't indeed access the application using

  • http://square/square/public
    • While using square domain will suit your vhost and /square/public is going to be rewritten to Zend, whom will attempt to operate Square_PublicController::indexAction()
  • (got a directory listing)
    • you have a directoy listing (permitted by Options Indexes in <Directory "/home/amree/web">) since your .htaccess is situated in

Make an option between:

Or possibly try an Alias in Apache

Alias /square /square/public