Add a public folder to ACP

Revision as of 03:15, 18 February 2023 by Dpaine (talk | contribs) (Created page with "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:...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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)

  1. ServerName www.example.com:80

ServerName 34.105.10.130:80

  1. Deny access to the entirety of your server's filesystem. You must
  2. explicitly permit access to web content directories in other
  3. <Directory> blocks below.

<Directory />

   AllowOverride none
   Require all denied

</Directory>

  1. For sips sub project

<Directory "D:/Acp/Accounts/Lumina/ACP Demos/Public"> AllowOverride All Require all granted </Directory>

  1. 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


You are not allowed to post comments.