CONFIG VIRTUALHOST APACHE SSL

Alles, was den Apache betrifft, kann hier besprochen werden.

CONFIG VIRTUALHOST APACHE SSL

Postby olivr3 » 18. November 2019 19:01

I have a live app running on port :8080

I managed to secure my site and redirect the app to listen on port 80 (http://142.93.118.89/#/dashboard), however when I tried to setup a ProxyPassReverse it doesn't work.

What Am I doing wrong here? Why can't I access https://www.ofornecedor.com.br?

Thanks

Code: Select all
root@ubuntu-suppliers:/etc/apache2/sites-available# cat ofornecedor.com.br-le-ssl.conf
<IfModule mod_ssl.c>
<VirtualHost *:443>
# ServerAdmin webmaster@localhost
# ServerName ofornecedor.com.br
# ServerAlias www.ofornecedor.com.br
# DocumentRoot /var/www/ofornecedor.com.br
# ErrorLog ${APACHE_LOG_DIR}/error.log
# CustomLog ${APACHE_LOG_DIR}/access.log combined

ServerName ofornecedor.com.br
ServerAlias www.ofornecedor.com.br

ProxyPreserveHost On
ProxyRequests Off
ProxyPass / http://127.0.0.1:8080/
ProxyPassReverse / http://127.0.0.1:8080/


Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/ofornecedor.com.br/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/ofornecedor.com.br/privkey.pem
</VirtualHost>
</IfModule>

root@ubuntu-suppliers:/etc/apache2/sites-available# cat ofornecedor.com.br.conf
<VirtualHost *:80>
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:8080/
ProxyPassReverse / http://127.0.0.1:8080/
# ServerAdmin webmaster@localhost
ServerName ofornecedor.com.br
ServerAlias www.ofornecedor.com.br
# DocumentRoot /var/www/ofornecedor.com.br
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
RewriteEngine on
RewriteCond %{SERVER_NAME} =ofornecedor.com.br [OR]
RewriteCond %{SERVER_NAME} =www.ofornecedor.com.br
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
root@ubuntu-suppliers:/etc/apache2/sites-available#
olivr3
 
Posts: 1
Joined: 18. November 2019 18:58
XAMPP version: 1
Operating System: Ubuntu

Return to Apache

Who is online

Users browsing this forum: No registered users and 3 guests