We help IT Professionals succeed at work.
Get Started

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

Bruce Gust
Bruce Gust asked
Last Modified: 2015-08-10
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?

Watch Question
Top Expert 2004
This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE