Ask questions about installing and configuring ProcessMaker 3

Moderator: amosbatto

By zKWdVqjUNUP
#826409
Hello every

I have a processmaker
ProcessMaker Ver.: 3.2.3-community
Web Server: Apache/2.4.18 (Ubuntu)
PHP Version: 5.6.40-12+ubuntu16.04.1+deb.sury.org+1
MySQL Version: 5.7.27-Oubuntu0.16.04.1



Now https://xxx.com is working. đź‘Ť
I need to force HTTP to HTTPS://XXX.com
When typing http://xxx.com
Bad Request
Your browser sent a request that this server could not understand.
Reason: You're speaking plain HTTP to an SSL-enabled server port.
Instead use the HTTPS scheme to access this URL, please.




My settings at /etc/apache2/sites-available/pmos.conf

<VirtualHost IP>
ServerName xxx.com
DocumentRoot /opt/processmaker/workflow/public_html
DirectoryIndex index.html index.php
SSLEngine on
SSLOptions +FakeBasicAuth +ExportCertData +StrictRequire
SSLCertificateFile /etc/ssl/xxx.pem
SSLCertificateKeyFile /etc/ssl/xxx.key
<Directory /opt/processmaker/workflow/public_html>
Options Indexes FollowSymLinks MultiViews
AddDefaultCharset UTF-8
AllowOverRide All
Require all granted
ExpiresActive On
<IfModule mod_rewrite>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^.*/(.*)$ app.php [QSA,L,NC]
</IfModule>
AddOutputFilterByType DEFLATE text/html
</Directory>
</VirtualHost>


Thankyou very much.
User avatar
By amosbatto
#826426
Try this:
NameVirtualHost your_ip:80
<VirtualHost your_ip:80>
ServerName xxx.com
Redirect / https://xxx.com
</VirtualHost>

<VirtualHost your_ip:443>
ServerName xxx.com
DocumentRoot /opt/processmaker/workflow/public_html
DirectoryIndex index.html index.php
SSLEngine on
SSLOptions +FakeBasicAuth +ExportCertData +StrictRequire
SSLCertificateFile /etc/ssl/xxx.pem
SSLCertificateKeyFile /etc/ssl/xxx.key
<Directory /opt/processmaker/workflow/public_html>
Options Indexes FollowSymLinks MultiViews
AddDefaultCharset UTF-8
AllowOverRide All
Require all granted
ExpiresActive On
<IfModule mod_rewrite>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^.*/(.*)$ app.php [QSA,L,NC]
</IfModule>
AddOutputFilterByType DEFLATE text/html
</Directory>
</VirtualHost>

See: https://www.tecmint.com/redirect-http-t ... on-apache/

Capture.PNG I have use this javascript code to ad[…]

Having a business, especially when it involves tra[…]

The condition is not workable

Hi there, Recently I've encountered the amount wh[…]

Yes i'm using vue js to load the data.