|
Home > Archive > Apache Server configuration support > February 2006 > Access to sub directory
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Access to sub directory
|
|
| ronmcfarlane@yahoo.com 2006-02-22, 7:50 am |
| Forgive me for my ignorance but I will try and explain my issue. I am
trying to set up a website for a community based preschool. I am using
Joomla content management system. At present (for development) I am
running Uniserver for Apache and mysql on a my Windows XP desktop.
After completing the development I wanted to give access to my home PC
from outside my router. I set up port forwading and this appears to be
letting traffic through.
When accessing the website using http//:localhost/........... everying
is great.
To test external access I entered by using my external IP address
followed path. I got an Apache forbidden message. After looking around
I found that I needed to make some changes to the config files. What I
read said I sould avoid using the .htaccess files and use the Directory
command in the http.conf files.
I added the following
<Directory "/www/">
Options Indexes Includes
AllowOverride None
Order allow,deny
Allow from all
</Directory>
and
<Directory "/home/admin/www/preschool">
Options Indexes Includes
AllowOverride FileInfo
Order allow,deny
Allow from all
</Directory>
This appeared to work as I could now have full access to the website.
When someone tride to get access from the internet they simply got the
websites pages with words and links. No formatting, template or
images. I can only assume that I have a problem with apache allowing
access to the sub directories.
I tried adding the sub directories to no directory statements with no
success. I thought the commands applied to the subdirectories.
I would appreciate any assistance.
Ron
| |
| Robert Ionescu 2006-02-23, 7:55 am |
| ronmcfarlane@yahoo.com wrote:
> At present (for development) I am running Uniserver for Apache and
> mysql on a my Windows XP desktop.
I don't know the uniform server very well, but I guess the files should
be published in /www/ and not in /home/admin/www/?
> What I read said I sould avoid using the .htaccess files and use the
> Directory command in the http.conf files.
Yes, if possible. Are there any other <Directory ...> sections in some
configuration file which might override your settings? Or which
activates .htaccess files again (AllowOverride ...) and therefore
restrictions from .htaccess files would apply?
If there are any access controls in a .htaccess file, try to comment out
them.
> When someone tride to get access from the internet they simply got
> the websites pages with words and links. No formatting, template or
> images.
Did you check the HTTP-Headers (i.e. with Firefox extension
livehttpheaders from mozdev.org) or the access.log for the returned
HTTP-Statuscode for those files?
--
Robert
|
|
|
|
|