|
|
serving nested pages with personal web sharing
|
|
|
|
Junior Member
Join Date: Jun 2001
Status:
Offline
|
|
I have personal web sharing running some complex php pages intereacting with a MySQL db. The other day I tried to put a folder in my sites folder, but this wont serve pages to computers not on my private lan. Any file that is directly in ~/sites will serve to the internet, but files in folders in ~/Sites will not. How do I get this to work?
|
|
|
|
|
|
|
|
|
Dedicated MacNNer
Join Date: Aug 2002
Location: Toronto
Status:
Offline
|
|
It seems to work fine here. (I know so much help )
Are you saying that computers on your LAN can access the folder in the Sites directory fine?
Have you made any drastic changes to httpd.conf? Does the folder have some sort weird permissions that Apache can't get around?
Just some guesses
|
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Oct 2000
Location: Los Angeles
Status:
Offline
|
|
This has to be an issue with permissions. I'm not too sure why it would serve to those in your LAN but not outside it, however. Maybe if you Get Info on /~Sites and then click "Apply to Enclosed Items" you'll have success.
|
"The natural progress of things is for liberty to yield and government to gain ground." TJ
|
|
|
|
|
|
|
|
Junior Member
Join Date: Jun 2001
Status:
Offline
|
|
|
|
|
|
|
|
|
|
|
Mac Enthusiast
Join Date: Mar 1999
Location: Portland, Oregon, United States
Status:
Offline
|
|
This has been a bug that has annoyed me for quite some time. I've asked before, but no one ever had an answer. There has to be a way to correct this strange behavior, but I haven't found it!
Have you reported this BUG to Apple?
|
--Laurence
|
|
|
|
|
|
|
|
Moderator Emeritus
Join Date: Mar 2001
Location: Austin, MN, USA
Status:
Offline
|
|
I don't know if this will solve it, but reading similar issues, it could be related to UseCanonicalName. Try setting that option to "Off" (where by default it is "On") in /etc/httpd/httpd.conf.
If you aren't sure how to edit that file, you can use this one-liner:
sudo perl -pi -e 's/UseCanonicalName\ On/UseCanonicalName\ Off/' /etc/httpd/httpd.conf
Be sure to turn websharing off and back on again once you make this change.
|
|
|
|
|
|
|
|
|
Addicted to MacNN
Join Date: Feb 2001
Location: zurich, switzerland
Status:
Offline
|
|
Originally posted by Xeo:
I don't know if this will solve it, but reading similar issues, it could be related to UseCanonicalName. Try setting that option to "Off" (where by default it is "On") in /etc/httpd/httpd.conf.
If you aren't sure how to edit that file, you can use this one-liner:
sudo perl -pi -e 's/UseCanonicalName\ On/UseCanonicalName\ Off/' /etc/httpd/httpd.conf
Be sure to turn websharing off and back on again once you make this change.
That will solve it. It's not a bug, but a feature of Apache that you can either enforce canonical names i.e. they trailing slash has to be included, or not.
|
weird wabbit
|
|
|
|
|
|
|
|
Moderator Emeritus
Join Date: Mar 2001
Location: Austin, MN, USA
Status:
Offline
|
|
Originally posted by theolein:
That will solve it. It's not a bug, but a feature of Apache that you can either enforce canonical names i.e. they trailing slash has to be included, or not.
I don't think UseCanonicalName is supposed to affect the trailing slash (or lack there of). It's only supposed to redirect the browser to the ServerName and Port settings that are set in httpd.conf. Apache normally redirects filenames to include the trailing slash if the user omits it. I think it is a bug that it fails to redirect properly when UseCanonicalName is set to On. I could be wrong, of course. I'm just piecing this together after having read more about it.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|