Jump to content

Setting up a virtual host


cs.punk

Recommended Posts

I'm basically trying to set up a zend project.

 

So in the book I'm reading, they state it's a 'good idea' to define a virtual host to point it to the 'application's public directory'...

 

So they say add this to httpd.conf

NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot "/usr/local/apache/htdocs/square/public"
ServerName square.localhost
</VirtualHost>

 

So I should be able to go to 'square.localhost/' but nope... However if I go to localhost/ I get the zend 'home splash screen' but it seems to be missing css/images?

 

Any ideas ? :)

 

And yes I did restart the apache server.

Link to comment
https://forums.phpfreaks.com/topic/237709-setting-up-a-virtual-host/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.