0

The real problem is that I'm not terribly good with infrastructure, but you probably can't help me there.

My issues today is that I'm trying to configure a virtual server on Win 7. I'm using Zend Server, and I'm following the Zend framework introductory tutorial, http://framework.zend.com/manual/en/learning.quickstart.create-project.html.

When I add the following config to the bottom of my http.conf file, I get 403 forbidden when I try to visit http://localhost/. Here's the config:

<VirtualHost *:80> ServerName openco.local DocumentRoot /ZendFW-Projects/opencoV2/public <Directory /ZendFW-Projects/opencoV2/public> DirectoryIndex index.php AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost> 

Any ideas? The tutorial says to make sure that NameVirtualHost is defined, however I wasn't sure what format this directive should take, so I left it out. I see that other related tutorials also leave it out, so I don't think that's the problem.

I have edited my etc/hosts, of course...

Any assistance much appreciated!

1 Answer 1

1

You actually do need the NameVirtualHost directive. You can put it at the top level of your configuration file, outside the snippet above:

NameVirtualHost *:80 

You will likely also need the SetEnv directive mentioned in the tutorial.

1
  • Thanks justarobert. I also had the path to my public directory wrong. (I though it was relative to the httpdocs root). Anyhow, all good now! Commented Apr 16, 2011 at 2:29

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.