Avatar of Bruce Gust
Bruce Gust
Flag for United States of America asked on

I changed my virtual host in Apache, now I can't get to any other directory.

I'm going through some Zend tutorials and at one point, I changed my httpd-vhost.conf file in Apache to this:

<VirtualHost *:80>
     ServerName tutorial.localhost
     DocumentRoot C:\wamp\www\zend_tutorial\public
     SetEnv APPLICATION_ENV "development"
     <Directory C:\wamp\www\zend_tutorial\public>
         DirectoryIndex index.php
         AllowOverride All
         Order allow,deny
         Allow from all

Now, I can't get out to any other directory, save my zend_tutorial without getting a page that a 404 error occurred. So, when I go out to localhost, I get my pretty little Zend page. But if I go out to localhost/SouthArea, I get a 404. In other words, every page is being processed according to my Zend directory and I don't want to do that.

I'm just following directions at this point without really understanding the ramifications of what I'm doing. What did I do when I changed my virtual host in my config file, how do I change it so I can access my other pages and how can I ensure that I access my Zend pages in the future? Do I have to change my virtual host?


Avatar of undefined
Last Comment
Bruce Gust

8/22/2022 - Mon
Bruce Gust

Alright, I've got my "regular" situation back and I did that by going back and commenting out my Virtual Host" line on my httpd-vhosts.conf, but...

Although I can see all my other sites, when I go to my Zend tutorial, which is at http://localhost/zend_tutorial/public/index.php, I get a "page not found" message.

Why is it that my Zend framework doesn't want to work apart from a Virtual Host entry on my Apache vhosts.conf file?
Steve Bink

View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Bruce Gust

Got it!
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck