You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Trystan Hughes <tr...@gmail.com> on 2005/09/26 22:45:44 UTC
[users@httpd] Re: Alias Directive Issue (403 Forbidden Error)
Hi I have checked my Apache Error log and it states the following...
Directory index forbidden by rule: c:/documents and
settings/trystan/my documents/
So with this, I chanded the 'Alias' directive in the httpd.conf file
to the following...
Alias /test_alias/ "C:/Program Files/Apache Group/Apache/htdocs/XML/"
When typing the URL http://localhost/test_alias/ I now get the
directory listing from the XML directory.
Is it a system secuirty setting to not display any directory that
resides outside of the Server-root?
I have also looked in Control Panel->Services->Apache, which is run as
the Local System Account.
What if I wanted to have my web application outside of the server
root, should this Alias command direct the enter URL to this new
directory that resides outside the server-root?
Thanks
Tryst
On 9/26/05, Trystan Hughes <tr...@gmail.com> wrote:
> Hi all,
>
> I want to create an Alias in the apache httpd.conf file and have done
> so like this
>
> <IfModule mod_alias.c>
> Alias /test_alias/ "C:\Documents and Settings\Trystan\My Documents\"
> </IfModule>
Two notes already:
1. Don't put something in an <IfModule> block unless you have some
specific reason to do so. (The only valid specific reason is that you
expect at some point to remove mod_alias and you want your config to
continue working.)
2. Always use forward slashes in the apache config, even for windows paths.
>
> So, what this should effective do is to print the directory contents
> of 'My Documents' directory when I enter the following URL into my
> browser...
>
> http://localhost/text_alias/
>
> I get a 403 Forbidden Error.
>
> Why is this? How can I check to see what user the Apache server is
> running under?
Check the apache error log to start. The user can be determined by
looking in the "Run as" section of the services control panel for the
apache service.
Joshua.403
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Re: Alias Directive Issue (403 Forbidden Error)
Posted by Trystan Hughes <tr...@gmail.com>.
Ok. Although I managed to get it working when creating an alias that
was under the server-root, I still wanted to get it working for
directories outside of the server-root.
I done what you mentioned, and created a .htaccess file and placed it
in the following directory...
"C:/Documents and Settings/Trystan/My Documents/"
This .htaccess file included the follow one single directive...
Options Indexes
But I am still getting the same error message in my Apache Log...
Directory index forbidden by rule: c:/documents and
settings/trystan/my documents/
Have I done the right thing by use the .htaccess file?, and should it
be in the directory that I have placed it in?
Thanks
Tryst
On 26/09/05, Joshua Slive <js...@gmail.com> wrote:
> On 9/26/05, Trystan Hughes <tr...@gmail.com> wrote:
> > Hi I have checked my Apache Error log and it states the following...
> >
> > Directory index forbidden by rule: c:/documents and
> > settings/trystan/my documents/
>
> This means that the Options directive applying to that directory did
> not have the Indexes option included.
>
> > Is it a system secuirty setting to not display any directory that
> > resides outside of the Server-root?
>
> It just means you need to add a new Options directive for that
> directory to set the appropriate options.
>
> Joshua.
>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Re: Alias Directive Issue (403 Forbidden Error)
Posted by Joshua Slive <js...@gmail.com>.
On 9/26/05, Trystan Hughes <tr...@gmail.com> wrote:
> Hi I have checked my Apache Error log and it states the following...
>
> Directory index forbidden by rule: c:/documents and
> settings/trystan/my documents/
This means that the Options directive applying to that directory did
not have the Indexes option included.
> Is it a system secuirty setting to not display any directory that
> resides outside of the Server-root?
It just means you need to add a new Options directive for that
directory to set the appropriate options.
Joshua.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org