apache 2.2.4 alias and two drives

apache 2.2.4 alias and two drives

am 16.09.2007 00:07:47 von dave

Hello,
I've got a problem that was given to me and i have no idea on solving
it. I've got an apache 2.2.4 win32 installation running just fine, locally.
The document root is set properly and it serves pages, on the c: drive.
There's an alias pointing to another drive in this case a directory on the
f: drive. Now locally that is on the machine with the server on it accessing
these aliased pages works fine, yet from the internet this does not work.
Any suggestions as to why?
Thanks.
Dave.

Re: apache 2.2.4 alias and two drives

am 17.09.2007 10:39:53 von phantom

"Dave" wrote in message
news:46ec57b4$0$24261$4c368faf@roadrunner.com...
> Hello,
> I've got a problem that was given to me and i have no idea on solving
> it. I've got an apache 2.2.4 win32 installation running just fine,
> locally. The document root is set properly and it serves pages, on the c:
> drive. There's an alias pointing to another drive in this case a directory
> on the f: drive. Now locally that is on the machine with the server on it
> accessing these aliased pages works fine, yet from the internet this does
> not work. Any suggestions as to why?
> Thanks.
> Dave.
>

You could try adding the following to your conf file -

order allow,deny
allow from all

Re: apache 2.2.4 alias and two drives

am 17.09.2007 16:45:21 von shimmyshack

Dave wrote:

> Hello,
> I've got a problem that was given to me and i have no idea on solving
> it. I've got an apache 2.2.4 win32 installation running just fine, locally.
> The document root is set properly and it serves pages, on the c: drive.
> There's an alias pointing to another drive in this case a directory on the
> f: drive. Now locally that is on the machine with the server on it accessing
> these aliased pages works fine, yet from the internet this does not work.
> Any suggestions as to why?
> Thanks.
> Dave.

yes, phantom is right, you should use an alias but also override any
global config you have, so for example allow indexing if you have no
default index file.
Alias /music M:/mp3s

Options Indexes
Order Deny, Allow


this is just in case you have permitted 127.0.0.1 more rights than the
average IP, and so are seeing this locally which any other IP is
disallowed.

Re: apache 2.2.4 alias and two drives

am 18.09.2007 04:51:41 von dave

Hello,
Thanks for your reply. I have an alias pointer pointing to this area
since it's outside the DocumentRoot, and then i have this:


order allow,deny
allow from all


As i said locally that is on that machine it works fine, but anything from
the internet doesn't.
Thanks.
Dave.

"phantom" wrote in message
news:t3rHi.15752$c_1.2716@text.news.blueyonder.co.uk...
> "Dave" wrote in message
> news:46ec57b4$0$24261$4c368faf@roadrunner.com...
>> Hello,
>> I've got a problem that was given to me and i have no idea on solving
>> it. I've got an apache 2.2.4 win32 installation running just fine,
>> locally. The document root is set properly and it serves pages, on the c:
>> drive. There's an alias pointing to another drive in this case a
>> directory on the f: drive. Now locally that is on the machine with the
>> server on it accessing these aliased pages works fine, yet from the
>> internet this does not work. Any suggestions as to why?
>> Thanks.
>> Dave.
>>
>
> You could try adding the following to your conf file -
>
> order allow,deny
> allow from all
>

>
>

Re: apache 2.2.4 alias and two drives

am 18.09.2007 22:57:16 von ChronoFish

On Sep 17, 10:51 pm, "Dave" wrote:
> Hello,
> Thanks for your reply. I have an alias pointer pointing to this area
> since it's outside the DocumentRoot, and then i have this:
>
>
> order allow,deny
> allow from all
>

>
> As i said locally that is on that machine it works fine, but anything from
> the internet doesn't.
> Thanks.
> Dave.
>
> "phantom" wrote in message
>
> news:t3rHi.15752$c_1.2716@text.news.blueyonder.co.uk...
>
> > "Dave" wrote in message
> >news:46ec57b4$0$24261$4c368faf@roadrunner.com...
> >> Hello,
> >> I've got a problem that was given to me and i have no idea on solving
> >> it. I've got an apache 2.2.4 win32 installation running just fine,
> >> locally. The document root is set properly and it serves pages, on the c:
> >> drive. There's an alias pointing to another drive in this case a
> >> directory on the f: drive. Now locally that is on the machine with the
> >> server on it accessing these aliased pages works fine, yet from the
> >> internet this does not work. Any suggestions as to why?
> >> Thanks.
> >> Dave.
>
> > You could try adding the following to your conf file -
> >
> > order allow,deny
> > allow from all
> >



Do you have multiple virtual servers defined? Sounds like you might.
One for "localhost" and one for "PublicName.com" (where PublicName.com
is the domain name)...

-CF