Link to home
Start Free TrialLog in
Avatar of Bruce Gust
Bruce GustFlag 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 Bruce Gust
Bruce Gust
Flag of United States of America image


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?
Avatar of Steve Bink
Steve Bink
Flag of United States of America image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Got it!