[users@httpd] Re: Alias Directive Issue (403 Forbidden Error)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <trystano@xxxxxxxxx> 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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux