imam ubuntu 18, na kom je apache 2.4 i domen ima ssl i hocu da uradim proxypass localhost:8081/gui/ na nijebitno.com/gui/ (koji su na istoj ip tj. masini)..
Evo ssl konfiguracije:
Code:
<IfModule mod_ssl.c>
SSLStaplingCache shmcb:/var/run/apache2/stapling_cache(128000)
<VirtualHost *:443>
ServerAdmin root@localhost
ServerName nijebitno.com
ServerAlias www.nijebitno.com
DocumentRoot /home/nijebitno/public_html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /home/nijebitno/public_html/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
SSLCertificateFile /etc/letsencrypt/live/nijebitno.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/nijebitno.com/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
Header always set Strict-Transport-Security "max-age=31536000"
SSLUseStapling on
RewriteEngine on
RewriteRule ^/gui(/?)(.*)$ /$2 [PT]
SSLProxyEngine On
SSLProxyCheckPeerCN on
SSLProxyCheckPeerExpire on
ProxyPreserveHost On
ProxyPass /gui http://localhost:8081/gui/
ProxyPassReverse /gui http://localhost:8081/gui/
</VirtualHost>
</IfModule>
<IfModule mod_ssl.c>
SSLStaplingCache shmcb:/var/run/apache2/stapling_cache(128000)
<VirtualHost *:443>
ServerAdmin root@localhost
ServerName nijebitno.com
ServerAlias www.nijebitno.com
DocumentRoot /home/nijebitno/public_html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /home/nijebitno/public_html/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
SSLCertificateFile /etc/letsencrypt/live/nijebitno.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/nijebitno.com/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
Header always set Strict-Transport-Security "max-age=31536000"
SSLUseStapling on
RewriteEngine on
RewriteRule ^/gui(/?)(.*)$ /$2 [PT]
SSLProxyEngine On
SSLProxyCheckPeerCN on
SSLProxyCheckPeerExpire on
ProxyPreserveHost On
ProxyPass /gui http://localhost:8081/gui/
ProxyPassReverse /gui http://localhost:8081/gui/
</VirtualHost>
</IfModule>
Dakle kad imam ovo /gui ne radi proxypass medjutim kad stavim samo recimo
Code:
ProxyPass / http://localhost:8081/gui/
(bez gui) tada se odrazi na citav domen.. -.-ProxyPass / http://localhost:8081/gui/
Neka pomoc?
Pomogao sam ti? Doniraj mi BTC:
3DqBaKL5DbXh1Xp2NUhdxhm3VFmfoHp8Nj
3DqBaKL5DbXh1Xp2NUhdxhm3VFmfoHp8Nj