Help for istruction "Directory" in httpd.conf

Discussion in 'Apache' started by hispanico, Aug 12, 2009.

  1. #1
    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 a istruction directory that i can write ....from C: to z: ??

    Thank
     
    Last edited: Aug 12, 2009
    hispanico, Aug 12, 2009 IP
  2. vasyl

    vasyl Peon

    Messages:
    138
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If you are using ntfs you can mount z: not as disk but as folder - this should help
     
    vasyl, Aug 13, 2009 IP
  3. hispanico

    hispanico Active Member

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    86
    #3
    Yes is right

    Thank again
    Hispanico
     
    hispanico, Aug 19, 2009 IP