Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.5: Apache 2 site troubles with permissions and folders' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: Apache 2 site troubles with permissions and folders
Authored by: KenDRhyD on Nov 06, '07 06:15:58AM
I did not have the problem with the permissions, as all files were owned by "staff" after the upgrade, but I did have a problem accessing my local site, as you noted.

Copying the .conf file(s) from the original location to the /etc/apache2/users/ folder got rid of that error, but now I get this error: Safari can't open the page "http://172.16.1.200/~krallen/" because it could not connect to the server "172.16.1.200". I can access http::/172.16.1.200/, but not my own site folder.

I also moved one of my test site definition from the /etc/httpd/httpd.conf file to the /private/etc/apache2/extra/httpd-vhosts.conf file, with the following syntax:

<VirtualHost *:80*gt;
   ServerAdmin kendrhyd@sympatico.ca
   DocumentRoot /Users/krallen/Sites/D2TestSite
   ServerName d2.test
</VirtualHost>
When I attempt to access the "d2.test" site, I get the error Safari can't open the page "http://d2.test/" because it can't find the server "d2.test"

I have checked, and the (DHCP) address for my system is 172.16.1.200 (and my account short name is "krallen").

Any ideas what I am doing wrong?

[ Reply to This | # ]

10.5: Apache 2 site troubles with permissions and folders
Authored by: albockiole on Nov 06, '07 06:56:02AM

You'll have to edit your /etc/hosts file (this is where it is in Tiger, should be the same in Leopard) so your computer knows where to direct all traffic to d2.test.

Go to the end of the file and add the following:

# Development virtual hosts
127.0.0.1 d2.test

If you ever decide to add more virtual hosts, just put a space after the last host and add the next one, like so:

# Development virtual hosts
127.0.0.1 d2.test d3.test d4.test d5.test


[ Reply to This | # ]
10.5: Apache 2 site troubles with permissions and folders
Authored by: KenDRhyD on Nov 06, '07 07:48:25AM
I added the entry to /etc/hosts as you suggested and the error went away, but it is not showing the expected page. Instead I am getting the standard "Test Page for Apache installation", which indicates there is something wrong with the Apache configuration!

After stopping and starting web sharing a couple of times, I am now able to view my local web site, but not this virtual site.

[ Reply to This | # ]