Add a public folder to ACP
Add a folder for downloading data files generated by ACP.
(This is the setup on Lumina's acp.analytica.com server, Substitute your directories and url's.)
- Add the folder D:/Acp/Accounts/Lumina/Acp Demos/Public to the Windows file system (In this example, the application must run in the Lumina/Acp Demos project - since ACP can't access folders in the windows file system outside of the current project).
- Edit the Apache httpd.conf file
- Find the section of the httpd.conf file with the ServerName and <Directory> tag following it. And add these lines (edit the directory path for your server) after the closing <Directory/> tag.
#For sips sub project <Directory "D:/Acp/Accounts/Lumina/ACP Demos/Public"> AllowOverride All Require all granted </Directory>
Here is what this section of the httpd.conf file looks like afterwards (on Lumina's server)
- ServerName www.example.com:80
ServerName 34.105.10.130:80
- Deny access to the entirety of your server's filesystem. You must
- explicitly permit access to web content directories in other
- <Directory> blocks below.
<Directory />
AllowOverride none Require all denied
</Directory>
- For sips sub project
<Directory "D:/Acp/Accounts/Lumina/ACP Demos/Public"> AllowOverride All Require all granted </Directory>
- Note that from this point forward you must specifically allow
- Add to the VirtualHost section at the end of the conf file.
<VirtualHost *:80> ServerName sips.analytica.com DocumentRoot "D:/Acp/Accounts/Lumina/ACP Demos/Public" Redirect permanent / https://SIPs.analytica.com/ </VirtualHost> <VirtualHost *:443> ServerName sips.analytica.com DocumentRoot "D:/Acp/Accounts/Lumina/ACP Demos/Public" </VirtualHost>
- I added the SIPs.Analytica.com Domain to point to the same server as Acp.analytica.com
- Url to the files: http://SIPs.Analytica.com/test.txt (where test.txt is the data file).
Comments
Enable comment auto-refresher