· 7 years ago · Aug 09, 2018, 07:54 PM
1Centos 7-4.1708 64 Bit
2Webserver: Apache Web Server 2.4
3All running as VM in ESXI
4OpenProject IP: 192.168.1.121
5SugarCRM IP: 192.168.1.122
6Gateway: 192.168.1.1
7
8Bad Request.
9Your browser sent a request that this server could not understand.
10Reason: You're speaking plain HTTP to an SSL-enabled server port.
11Instead use the HTTPS scheme to access this URL, please.
12
13<VirtualHost *:4000>
14ServerName pm.server1.com
15ServerAlias server1.com
16ServerAdmin myemail@gmail.com
17DocumentRoot /opt/openproject/public
18ErrorLog /var/log/httpd/pm.server1.com-error_log
19CustomLog /var/log/httpd/pm.server1.com-access_log common
20
21<Directory /opt/openproject/public>
22 Options +FollowSymLinks +Includes
23 AllowOverride All
24 Require all granted
25 </Directory>
26
27ProxyRequests off
28ProxyPass / http://127.0.0.1:6000/ retry=0
29ProxyPassReverse / http://127.0.0.1:6000/
30
31SSLEngine On
32SSLCertificateFile /etc/letsencrypt/live/pm.server1.com/fullchain.pem
33SSLCertificateKeyFile /etc/letsencrypt/live/pm.server1.com/privkey.pem
34</VirtualHost>
35
36<VirtualHost *:4001>
37 ServerAdmin myemail@gmail.com
38 ServerName sugar.server1.com
39 ServerAlias server1.com
40 DocumentRoot /opt/sugarcrm
41 ErrorLog /var/log/httpd/sugar.server1.com-error_log
42 CustomLog /var/log/httpd/sugar.server1.com-access_log common
43
44
45<Directory /opt/sugarcrm>
46 Options +FollowSymLinks +Includes
47 AllowOverride All
48 Require all granted
49 </Directory>
50
51SSLEngine On
52SSLCertificateFile /etc/letsencrypt/live/sugar.server1.com/fullchain.pem
53SSLCertificateKeyFile /etc/letsencrypt/live/sugar.server1.com/privkey.pem
54</VirtualHost>