You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Gunivortus Goos <Gu...@boudicca.de> on 2003/11/01 18:00:21 UTC

[users@httpd] Path problem

Hello,

couldn't find an answer on my path problem, hoping, I'll get it here.

I'm running Apache (Latest AppServ) under Windows XP Pro, installed at:
c:\AppServ
My downloads for visitors are on a different partition, therefore I added
to my httpd.conf:
    Alias /downloads/ "e:/ftp/magic/deutsch/"
This works.
But those downloadfiles should be paswordprotected, so I placed in that
directory a .htaccess file. The path in it to the AuthUserFile is:
    AuthUserFile c:\appserv\apache\bin\password.txt
This fails, the path isn't seen. I tried also slashes in stead of backslashes,
but that didn't help.

could someone help me to solve this?

-- 
Best regards,
 Gunivortus



---------------------------------------------------------------------
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: Re[2]: [users@httpd] Path problem

Posted by Robert Andersson <ro...@profundis.nu>.
Gunivortus Goos wrote:
> It's not easy for someone who never used Linux commandline syntaxes,
> and always strongly preferred graphical configuration envirroment, to use
> software like Apache.

Well, the learning curve for *nix like software is generally a bit steeper
than Windows like software, but in exchange you get more power and
flexibility in the long run. Personally, I loath (server) software that is
configured with a GUI, because that makes it impossible for me to automate
the configuration by scripting, or backing up or quickly change between
different configurations. Long Live Configuration Files!

> I really would like to have things, f.i.  like offered at
> http://httpd.apache.org/docs-2.0/mod/core.html, in one config executable.
> Well, it isn't, but because Apache is such a strong program, I installed
and
> use it, slowly learning this way of configuration under Windows XP. :-)

I think there are GUIs for Apache configuration/administration. But, I have
not had any reason to look at them, so I cannot point you at a good one. Try
to google for Apache + GUI + configuration, and you will stumble upon
something.

Regards,
Robert Andersson


---------------------------------------------------------------------
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[2]: [users@httpd] Path problem

Posted by Gunivortus Goos <Gu...@boudicca.de>.
Hello Robert,

RA> Consider putting the authentication directives directly in httpd.conf. In
RA> that case you would do:

Thanks a lot for your kind help!

It's not easy for someone who never used Linux commandline syntaxes, and
always strongly preferred graphical configuration envirroment, to use software
like Apache. I really would like to have things, f.i.  like offered at
http://httpd.apache.org/docs-2.0/mod/core.html, in one config executable.
Well, it isn't, but because Apache is such a strong program, I installed and
use it, slowly learning this way of configuration under Windows XP. :-)

-- 
Best regards,
 Gunivortus



---------------------------------------------------------------------
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] Path problem

Posted by Robert Andersson <ro...@profundis.nu>.
Gunivortus Goos wrote:
> My downloads for visitors are on a different partition, therefore I added
> to my httpd.conf:
>     Alias /downloads/ "e:/ftp/magic/deutsch/"
> This works.
> But those downloadfiles should be paswordprotected, so I placed in that
> directory a .htaccess file.

Consider putting the authentication directives directly in httpd.conf. In
that case you would do:

    <Directory e:/ftp/magic/deutch>
        AuthType Basic
        AuthUserFile ...
        ...
    </Directory>

However, your current problem is likely because you haven't configured
Apache to allow access files to override authentication. You need to do:


    <Directory e:/ftp/magic/deutch>
        AllowOverride AuthConfig
    </Directory>

See:
    http://httpd.apache.org/docs-2.0/mod/core.html#allowoverride

Regards,
Robert Andersson


---------------------------------------------------------------------
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