Publishing Onepoint

From Onepoint Systems Integration
Revision as of 09:54, 3 November 2018 by Pedro Ferreira (talk | contribs) (Created page with "After installing Onepoint following any way described on Downloading Onepoint, a copy of the web files is located under /usr/share/onepoint/pantufa. Our recomendation is y...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

After installing Onepoint following any way described on Downloading Onepoint, a copy of the web files is located under /usr/share/onepoint/pantufa. Our recomendation is you copy this sctructure for anywhere you want to publish.

Publishing Onepoint in the root of the web server

If you want to publish Onepoint in the root of the webserver so that you can point any DNS name directly into the Onepoint Web UI / REST API endpoint, you can copy all the content structure under /usr/share/onepoint/pantufa into your web root (usually, /var/www/html) or you can use your own chosen location (or even let them on /usr/share/onepoint/pantufa), and update the DocumentRoot on Apache to point to it.

Alternatives

Copying to the default web root

First, copy Onepoint Web structure into your DocumentRoot (usually /var/www/html):

 cp -rvv /usr/share/pantufa/* /var/www/html

If your Document Root is another, you can use it:

 cp -rvv /usr/share/pantufa/* <DOCUMENTROOTPATH>

Second, make sure Apache user (replace it for apache if it isn't apache) has complete access to it:

 chown -R apache:apache /var/www/html

or

 chown -R apache:apache <DOCUMENTROOTPATH>

Third, setup .htaccess

 # .htaccess file on Onepoint Root
 RewriteEngine On
 RewriteBase /
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteRule ^(.*)$ index.php/$1 [L]
 
 AddType application/x-java-jnlp-file .jnlp

Use installed Onepoint location

First, edit your httpd.conf file or included configure file where the <Directory> tag is set for the DOCUMENTROOT, so that the new document root be /usr/share/onepoint/pantufa.

Second, make sure Apache user (replace it for apache if it isn't apache) has complete access to it:

 chown -R apache:apache /usr/share/onepoint/pantufa

Third, setup .htaccess

 # .htaccess file on Onepoint Root
 RewriteEngine On
 RewriteBase /
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteRule ^(.*)$ index.php/$1 [L]
 
 AddType application/x-java-jnlp-file .jnlp

Using your own location

First, copy Onepoint Web structure into your place:

 cp -rvv /usr/share/pantufa/* <YOURPLACE>

Second, edit your httpd.conf file or included configure file where the <Directory> tag is set for the DOCUMENTROOT, so that the new document root be YOURPLACE.

Third, make sure Apache user (replace it for apache if it isn't apache) has complete access to it:

 chown -R apache:apache <YOURPLACE>

Fourth, setup .htaccess

 # .htaccess file on Onepoint Root
 RewriteEngine On
 RewriteBase /
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteRule ^(.*)$ index.php/$1 [L]
 
 AddType application/x-java-jnlp-file .jnlp