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 and it's child folders).
  • 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>
  • Set the SIPs.Analytica.com Domain to point to the same server as Acp.analytica.com.
  • Add the SIPs.Analytica.com subdomain as a subject alternativee name to the server SSL certificate if you intend to use SSL to access this folder.
  • Url to the files: http://SIPs.Analytica.com/test.txt (where test.txt is the data file). E.g. http://SIPs.Analytica.com/test.txt
  • If you open this url in a browser you should see"Hello World"
  • Note that If you entered just sips.analytica.com without the trailing " / " and file you would get a 403 error unless you have another page cached - since this Domain does not point to acp
Comments


You are not allowed to post comments.