Bruce Gust
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
</Directory>
</VirtualHost>
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?
Thanks!
<VirtualHost *:80>
ServerName tutorial.localhost
DocumentRoot C:\wamp\www\zend_tutorial\
SetEnv APPLICATION_ENV "development"
<Directory C:\wamp\www\zend_tutorial\
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
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?
Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Got it!
ASKER
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?