Apache Network Drive Alias

后端 未结 4 665
小蘑菇
小蘑菇 2021-01-07 12:56

I\'ve searched through stackoverflow for a similiar problem, but none of the solutions seem to work.

I\'m running WAMP and have a network drive T:\\ whi

4条回答
  •  自闭症患者
    2021-01-07 13:18

    caltor is right , little edit here , you can use cause it has alias.But I hate writing network drive in config like //p... also

    There is another problem occurs here , in this method , you cannot execute exec() or batch file , cannot take the information of directory , open_dir etc cannot return a result , also apache cannot start as a service . To solve that,

    First of all download http://technet.microsoft.com/en-us/sysinternals/bb842062.aspx Extract zip file to C:/sys. Open cmd , and

    cd c:/sys (enter)
    psexec -i -s cmd.exe
    

    then a new command line appears . All you need

    net use j: \\lethea\sharedfolder /persistent:yes
    

    will ask username and password of lethea pc . Here is j: the short name of the network drive . After doing this , in httpd.conf folder you dont need to create alias or write full network map to Documentroot and directory

    Documentroot = "j:/mywww"  #referencing \\lethea\sharedfolder\mywww
    
    

    ...

提交回复
热议问题