|
|
10.5: Apache 2 site troubles with permissions and folders
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: 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;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?
10.5: Apache 2 site troubles with permissions and folders
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
10.5: Apache 2 site troubles with permissions and folders
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. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.05 seconds |
|