I have a local network set up and have my imac serving files with Apache/PHP. Everything works fine when entering the projectname in Safari on the iMac, but when I punch in the same name on my PowerBook (in my local network), it goes to the root directory of where my files are on the iMac. Can somebody tell me what I need to do to get it to go to it's folder inside the root directory?
Here's an example of what I have in my settings:
PowerBook's /etc/hosts file:
192.168.1.103 projectname
When I enter http://projectname in Safari on the PowerBook it goes to the root folder (which is /Volumes/Websites)
iMac's /private/etc/httpd/httpd.conf file:
NameVirtualHost projectname:80
<VirtualHost projectname>
ServerName projectname
DocumentRoot /Volumes/Websites/projectname.com
</VirtualHost>
I ran the apacheconfigtest and the only errors that came up are NameVirtualHost projectname:80 has no VirtualHosts, but the Syntax checked out OK so it should work as far as I can tell. I have also restarted Apache through the System Config section as well.
Any help would be greatly appreciated.
Here's an example of what I have in my settings:
PowerBook's /etc/hosts file:
192.168.1.103 projectname
When I enter http://projectname in Safari on the PowerBook it goes to the root folder (which is /Volumes/Websites)
iMac's /private/etc/httpd/httpd.conf file:
NameVirtualHost projectname:80
<VirtualHost projectname>
ServerName projectname
DocumentRoot /Volumes/Websites/projectname.com
</VirtualHost>
I ran the apacheconfigtest and the only errors that came up are NameVirtualHost projectname:80 has no VirtualHosts, but the Syntax checked out OK so it should work as far as I can tell. I have also restarted Apache through the System Config section as well.
Any help would be greatly appreciated.