Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1106483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T01:48:02+00:00 2026-05-17T01:48:02+00:00

I just started learning Zend. I managed to get the basic working (using zf

  • 0

I just started learning Zend. I managed to get the basic working (using zf create project) in my local web server. Let’s just say my project is called square

The only .htaccess that 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]

httpd.conf

DocumentRoot "/home/amree/web"

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

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

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

hosts

127.0.0.1               square

I’m running my application on Linux.

From what I’ve gathered, I can open (loaded without any problems) the site using:

  • http://square/
  • http://square/default/index/index
  • http://192.168.1.10/square/public/
  • http://192.168.1.10/square/public/default/index/index

But I can’t open it using:

  • http://square/square/public (An error occurred message from Zend)
  • http://192.168.1.10/square/ (got a directory listing)

I also have other web applications in the same web server. For example, the meh application can be opened using http://192.168.1.10/meh/ but cannot be opened using http://square/meh

My question is, how can I load my Zend application without getting problems to other applications in the same server? At the moment, I prefer accessing it using my local IP (192.168.1.10). It should be possible to open it from another computer in the same network.

So, in the end I should be able to load the Zend project using

  1. http://192.168.1.10/square
  2. http://192.168.1.10/square/public
  3. http://192.168.1.10/square/public/default/index/index

And I can also open my other meh application using http://192.168.1.10/meh

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T01:48:02+00:00Added an answer on May 17, 2026 at 1:48 am

    You can’t indeed access your application using

    • http://square/square/public
      • Using the square domain will match your vhost and /square/public will be rewritten to Zend, whom will try to run Square_PublicController::indexAction()
    • http://192.168.1.10/square/ (got a directory listing)
      • you got a directoy listing (allowed by Options Indexes in <Directory "/home/amree/web">) because your .htaccess is located in http://192.168.1.10/square/public

    You have to make a choice between:

    • http://192.168.1.10/square
    • http://192.168.1.10/square/public

    Or maybe try an Alias in Apache

    Alias /square /square/public
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just started learning mvc3. I've built a fairly basic website (also using EF-Code-First if
I just started learning ruby on rails. I'm using 'Agile Web Development with Rails,
I just started learning C# and started with Windows Forms project. When I try
I just started learning the zend framework and what im wondering is , is
I just started learning targets, and have followed all the instructions to create my
Just started learning Scheme. I'm using Dr. Racket as my compiler/interpreter. I need some
I just started learning Backbone.js, and have been working on (what else) a simple
I just started learning C++ and am currently using codeblocks. I want to write
Just started learning Ruby metaprogramming. Looking at Object.methods I get: Object.methods => [ :allocate,
Just started learning C++ and my knowledge is quite basic on IT. I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.