Forum Moderators: phranque

Message Too Old, No Replies

Alias doesn't work with mapped network drive

         

roda

2:27 pm on Mar 26, 2005 (gmt 0)

10+ Year Member



Hi,

I am having problem with Alias directive. I can do it and it is working fine with local hard drive. But, when I mapped network drive, and created an alias for that drive, it didn't work. I couldn't even start apache. Please see my configuration below.


Alias /temp/ "Z:/temp/"

<Directory "Z:/temp">
Options Indexes MultiViews
Allow from all
Order allow,deny
AllowOverride None
</Directory>

NOTE: Z: is a mapped network drive.

Can anyone tell me why doesn't it work? Did I do anything wrong? Or, apache never works with mapped network drive?

Please help!

Thank you in advance.

Roda

roda

2:32 pm on Mar 26, 2005 (gmt 0)

10+ Year Member



PS:

I am running apache on Windows 2000 server and Windows XP pro. I tried on both machines, but never works.

Thank you.

Roda

jdMorgan

3:18 pm on Mar 26, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



roda,

Welcome to WebmasterWorld!

Just a guess here, but try using a Windows-syntax pathname for the drive:


Alias /temp/ "Z:[b]\[/b]temp[b]\[/b]"

Jim

roda

3:52 pm on Mar 26, 2005 (gmt 0)

10+ Year Member



Hi Jim,

I have tried this way, but still didn't work. If I only use Alias directive without Directory directive, then I could only start apache, but the alias never works. I still could not open any pages. I got the following error message:


The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.

Any idea? Please help!

Thank you.

Roda

roda

10:08 am on Mar 30, 2005 (gmt 0)

10+ Year Member



Anyone can help?

Roda

sitz

2:23 pm on Mar 30, 2005 (gmt 0)

10+ Year Member



What do your access/error logs show when you make a request for the Alias'd directory? Do you have any other Aliases which could be conflicting with this one? Are you using any RewriteRule lines? Are you using <VirtualHost> blocks? Is the Alias line in one of them? If so, is it in the *right* one? =)

Caterham

3:37 pm on Mar 30, 2005 (gmt 0)

10+ Year Member



> when I mapped network drive, and created an alias
> for that drive, it didn't work. I couldn't even start apache.

On windows systems, you should find sthg. also in the windows event log, if apache fails to start.