You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Rob Brenart (TT)" <Ro...@tradingtechnologies.com> on 2005/01/06 22:11:54 UTC
[users@httpd] Alias with UNC questions
I'm converting a Windows based Apache machine to a Linux based Apache
machine.
In my windows httpd.conf I have several aliases setup as such
Alias /share "//servername/sharename"
<Directory "//servername/share">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
And they work fine.
However, the same line on the new linux box gives a 404 error... which is
what I expected since if I ping servername I get no response. So I changed
servername to servername.domain which is a pingable resource... and I still
get a 404
Is this just an authentication issue that I need to resolve, or are UNC
paths like this not the right setup in the linux world?
I was figuring I can mount all of these shares in my fstab and then point my
alias to the mount points, but that seems like overkill to me, or is it in
fact the right approach?
---------------------------------------------------------------------
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] Alias with UNC questions
Posted by Aman Raheja <ar...@techquotes.com>.
If that sharename is on windows, you'll need something like samba to
mount it on the linux box and then use that path in your config.
Aman Raheja
Rob Brenart (TT) wrote:
>I'm converting a Windows based Apache machine to a Linux based Apache
>machine.
>
>In my windows httpd.conf I have several aliases setup as such
>
>Alias /share "//servername/sharename"
><Directory "//servername/share">
> Options Indexes MultiViews
> AllowOverride None
> Order allow,deny
> Allow from all
></Directory>
>
>And they work fine.
>
>However, the same line on the new linux box gives a 404 error... which is
>what I expected since if I ping servername I get no response. So I changed
>servername to servername.domain which is a pingable resource... and I still
>get a 404
>
>Is this just an authentication issue that I need to resolve, or are UNC
>paths like this not the right setup in the linux world?
>
>I was figuring I can mount all of these shares in my fstab and then point my
>alias to the mount points, but that seems like overkill to me, or is it in
>fact the right approach?
>
>---------------------------------------------------------------------
>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
>
>
>
>
---------------------------------------------------------------------
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] Alias with UNC questions
Posted by André Malo <nd...@perlig.de>.
* Rob Brenart (TT) wrote:
> or are UNC paths like this not the right setup in the linux world?
it isn't. Linux doesn't even know about UNC paths.
> I was figuring I can mount all of these shares in my fstab and then point
> my alias to the mount points, but that seems like overkill to me, or is
> it in fact the right approach?
That is actually, what windows does, too (on the fly). If you like it on the
fly on linux, use autofs, but I wouldn't recommend it. Your fstab setup is
the typical and most reliable way.
nd
--
package Hacker::Perl::Another::Just;print
qq~@{[reverse split/::/ =>__PACKAGE__]}~;
# André Malo # http://www.perlig.de #
---------------------------------------------------------------------
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