<VirtualHost *:80>
ServerName office.webhoran.com
Redirect permanent / https://office.webhoran.com
</VirtualHost>
<VirtualHost *:443>
ServerName office.webhoran.com
SSLEngine on
SSLCertificateFile /etc/cloudflare/certs/office.webhoran.com/origin.crt
SSLCertificateKeyFile /etc/cloudflare/certs/office.webhoran.com/private.key
SSLOpenSSLConfCmd DHParameters /etc/cloudflare/certs/office.webhoran.com/dhparam.pem
ProxyPreserveHost On
ProxyAddHeaders On
<Proxy *>
AllowMethods GET POST PUT DELETE OPTIONS
</Proxy>
RequestHeader set Content-Type "application/json" "expr=-z %{req:Content-Type}"
RequestHeader set X-Forwarded-Proto "https"
RequestHeader set X-Forwarded-Host "office.webhoran.com"
RequestHeader set Host "office.webhoran.com"
Header set Access-Control-Allow-Origin "*"
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
RequestHeader set X-Forwarded-Ssl on
RewriteEngine on
RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteCond %{HTTP:Connection} upgrade [NC]
RewriteRule ^/?(.*) "ws://192.168.1.73:9000/$1" [P,L]
# General Proxy
ProxyPass / http://192.168.1.73:9000/
ProxyPassReverse / http://192.168.1.73:9000/
Header edit Location ^http:// https://
ProxyTimeout 600
# LogLevel debug
ErrorLog ${APACHE_LOG_DIR}/docs_error.log
CustomLog ${APACHE_LOG_DIR}/docs_access.log combined
I fixed the Android app view problem with the above virual host file
and changinge the .env file to include
EXTRA_HOSTS=“office.webhoran.com:172.19.0.17”
APP_URL_PORTAL=https://office.webhoran.com
but I still can’t login via web at the url https://office.webhoran.com