Ask in a Wordpress forum? I have no idea how WordPress works.
P.S::
- Code: Select all
I want individuals to be able to click a link and open files from "//servername/folder/file.pdf" or similar.
Lets forget about wordpress (i dont know if there is any special configuration for wordpress), but from the view of Apache and TCPIP, you have to do the following configuration:
Edit Apache configuration (I.e. httpd.conf or so) and apply a VirtualHost for "servername":
- Code: Select all
<VirtualHost *:80>
ServerName servername
DocumentRoot //servername/share/
<Directory //servername/share/>
Require All Granted
</Directoy>
</VirtualHost>
Of course you may enter lots more options into that VirtualHost, but this is the minimal declaration.
//servername/share must be a valid Server / Windows share in your network (which points to any valid PATH on servername), there you can create your "folder" and put the file file.pdf. Keep in mind that Apache process must have sufficient rights to access //servername/share. Finally you put the file under //servername/share/folder/file.pdf but must be linked as
http://servername/folder/file.pdf.
P.P.S.: Maybe i got it wrong, of course you also simply can provide a file from C: drive (instead from a Windows Share, which is very sophisticated), simply apply another DocumentRoot:
- Code: Select all
<VirtualHost *:80>
ServerName servername
DocumentRoot c:/myfiles
<Directory c:/myfiles>
Require All Granted
</Directoy>
</VirtualHost>
Then simply create a folder "folder" in c:/myfiles and put file.pdf there, then also link to
http://servername/folder/file.pdf. If servername is NOT the Windows Server Name for the Xampp PC, you have to apply servername to all(!) hosts files in your network PCs. I.e:
- Code: Select all
192.168.1.2 servername