Publishing Onepoint

From Onepoint Systems Integration
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

Publishing Onepoint in a folder under the Root URL

If you want to publish Onepoint so that it can be accessed throuth http://<YOURSERVER>/onepoint, follow one of the options below.

Alternatives

Copying to the default web root

First, copy Onepoint Web structure into your DocumentRoot (usually /var/www/html) or create a symbolic link:

 ]# cp -rvv /usr/share/pantufa /var/www/html/onepoint
 OR
 ]$ ln -s /usr/share/pantufa /var/www/html/onepoint

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

 ]# cp -rvv /usr/share/pantufa <DOCUMENTROOTPATH>/onepoint
 OR
 ]$ ln -s /usr/share/pantufa <DOCUMENTROOTPATH>/onepoint

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/onepoint

or

 chown -R apache:apache <DOCUMENTROOTPATH>/onepoint

Third, setup .htaccess

 # .htaccess file on Onepoint Root
 RewriteEngine On
 RewriteBase /onepoint
 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 to create a <Directory> tag for /usr/share/onepoint/pantufa, similar to the <Directory> tag of the DOCUMENTROOT.

Second, create an Alias tag for /onepoint in httpd.conf or some specific included file for it:

 Alias /onepoint /usr/share/onepoint/pantufa

Third, 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

Fourth, setup .htaccess

 # .htaccess file on Onepoint Root
 RewriteEngine On
 RewriteBase /onepoint
 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 to create a <Directory> tag for YOURPLACE, similar to the <Directory> tag of the DOCUMENTROOT.

Third, create an Alias tag for /onepoint in httpd.conf or some specific included file for it:

 Alias /onepoint <YOURPLACE>

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

 chown -R apache:apache <YOURPLACE>

Fifth, setup .htaccess

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

Publishing Onepoint in a Virtual Host

You can easily create a virtual directory and follow a similar method than one of the above ones to copy / link and permission files.