Apache Server configuration support - apache 2.2.4 alias and two drives

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > September 2007 > apache 2.2.4 alias and two drives





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author apache 2.2.4 alias and two drives
Dave

2007-09-15, 7:17 pm

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.


phantom

2007-09-17, 7:38 am

"Dave" <dmehler26@woh.rr.com> wrote in message
news:46ec57b4$0$24261$4c368faf@roadrunne
r.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 -
<Directory "F:/where-my-files-are/">
order allow,deny
allow from all
</Directory>


shimmyshack

2007-09-17, 1:34 pm


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
<Directory "M:/mp3s">
Options Indexes
Order Deny, Allow
</Directory>

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.

Dave

2007-09-18, 1:30 am

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:

<Directory "F:/where-my-files-are/">
order allow,deny
allow from all
</Directory>

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

"phantom" <nobody@blueyonder.invalid> wrote in message
news:t3rHi.15752$c_1.2716@text.news.blueyonder.co.uk...
> "Dave" <dmehler26@woh.rr.com> wrote in message
> news:46ec57b4$0$24261$4c368faf@roadrunne
r.com...
>
> You could try adding the following to your conf file -
> <Directory "F:/where-my-files-are/">
> order allow,deny
> allow from all
> </Directory>
>
>



ChronoFish

2007-09-18, 7:22 pm

On Sep 17, 10:51 pm, "Dave" <dmehle...@woh.rr.com> wrote:[vbcol=seagreen]
> 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:
>
> <Directory "F:/where-my-files-are/">
> order allow,deny
> allow from all
> </Directory>
>
> As i said locally that is on that machine it works fine, but anything from
> the internet doesn't.
> Thanks.
> Dave.
>
> "phantom" <nob...@blueyonder.invalid> wrote in message
>
> news:t3rHi.15752$c_1.2716@text.news.blueyonder.co.uk...
>
>


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

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com