Is it possible to add an alias so that a site in httpd-vhost.config can read a file from another computer on the local network?
Posted by: Dragos (---.ro)
Date: September 03, 2024 06:24PM

I have an alias entered at a site that reads a folder for me after another partition. Is it possible to use a folder from another computer in the network instead of the partition?
Now:
Alias "/Movie" "E:/Movie"
<Directory "E:/movie/">
Require all granted
</Directory>

What i want:

Alias "/Movie" "http :// 192.168.1.3 /E:/movie/ "
<Directory " http ://192.168.1.3 /E:/movie/ ">
Require all granted
</Directory>

===========================
thank you,
Dragos
===========================
I use:
windows 10 x64 bit
wampserver 3.3.6 (64bit)
php 8.3.9
mysql 9.0.1
phpmyadmin 5.2.1
apache 2.4.62
MariaDB 11.4.2



Edited 2 time(s). Last edit at 09/03/2024 06:27PM by Dragos.

Options: ReplyQuote
Re: Is it possible to add an alias so that a site in httpd-vhost.config can read a file from another computer on the local network?
Posted by: Otomatic (Moderator)
Date: September 04, 2024 08:38AM

Hi,

This might be possible using a UNC path such as "//COMPUTERNAME/dir/".

I can't try, I don't have a networked PC.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Is it possible to add an alias so that a site in httpd-vhost.config can read a file from another computer on the local network?
Posted by: Dragos (---.ro)
Date: September 04, 2024 10:40AM

Thank you again....

Options: ReplyQuote
Re: Is it possible to add an alias so that a site in httpd-vhost.config can read a file from another computer on the local network?
Posted by: Dragos (---.ro)
Date: September 06, 2024 08:51AM

There is a syntax error in Apache conf files.
[Fri Sep 06 09:44:18.412651 2024] [core:error] [pid 13796:tid 440] (13)Permission denied: AH10504: ap_filepath_merge: UNC path //Synology/Movies/ not allowed by UNCList
AH00526: Syntax error on line 2 of D:/wamp64/bin/apache/apache2.4.62/alias_movies.conf:
<Directory "//Synology/Movies/"> path is invalid.

This is alias file :

Alias "/Movies" "//Synology/Movies"
<Directory "//Synology/Movies/">
Require all granted
</Directory>

===========================
thank you,
Dragos
===========================
I use:
windows 10 x64 bit
wampserver 3.3.6 (64bit)
php 8.3.9
mysql 9.0.1
phpmyadmin 5.2.1
apache 2.4.62
MariaDB 11.4.2

Options: ReplyQuote
Re: Is it possible to add an alias so that a site in httpd-vhost.config can read a file from another computer on the local network?
Posted by: Otomatic (Moderator)
Date: September 06, 2024 11:15AM

Hi,

See Apache Documentation UNClist

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.