logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Help for istruction "Directory" in httpd.conf
Author
hispanico



Joined: 13 Aug 2009
Posts: 1

PostPosted: Thu 13 Aug '09 14:13    Post subject: Help for istruction "Directory" in httpd.conf Reply with quote

I have a problem with config istruction "Directory". In my file httpd.conf i have these lines:

<Directory "Z:">
Allow from all
</Directory>

This hard-disk is firewire and is connect to my computer but prevalent remain power-off and when i want watch some video inside i put power-on.
The problem born here....infact if i left these lines in the file httpd.conf, the server apache non start because find it power-off, windows event show this error:

The Apache service named reported the following error:
>>> <Directory "Z:"> path is invalid.

So i must "delete" these lines from httpd.conf::

#<Directory "Z:">
#Allow from all
#</Directory>

In this way apache start normally, but if after i put in power-on the external drive (z), the files inside aren't see from the server apache. I must stopped apache, modify file httpd.conf and restart the server.

There is the way or an special istruction for httpd.conf, that start server anyway also if the drive is power-off and contain the istruction <Directory> to see the files ?
Or there is an istruction diretory ex.... by C: to Z: ??

Thank
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Thu 13 Aug '09 17:06    Post subject: Reply with quote

Try a slash or backslash

<Directory "Z:/">

or

<Directory "Z:\">
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Thu 13 Aug '09 17:48    Post subject: Reply with quote

James Blond wrote:
<Directory "Z:\">


make that single forward slash or double backslash
<Directory "Z:\\">
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Thu 13 Aug '09 19:55    Post subject: Reply with quote

glsmith wrote:

make that single forward slash or double backslash
<Directory "Z:\\">


Thanks for reminding.
Back to top


Reply to topic   Topic: Help for istruction "Directory" in httpd.conf View previous topic :: View next topic
Post new topic   Forum Index -> Apache