Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
deb11:apache [2023/01/16 19:58] – [Links] Bernard Condraudeb11:apache [2023/01/16 19:58] – [VirtualHost on the "proxy" server] Bernard Condrau
Line 168: Line 168:
 Follow the guide [[deb11:apache-proxy|Apache Server with Proxy]] to setup access to proxied servers. Follow the guide [[deb11:apache-proxy|Apache Server with Proxy]] to setup access to proxied servers.
  
-==== VirtualHost on the "proxy" server ==== 
-  * sub.domain.tld: external domain name with which you access the "host" behind the "proxy" 
-  * host.yourdomain.tld: internal domain name of your "host". You may also choose to have both names the same. 
-<code> 
-<VirtualHost *:80> 
-    ServerName sub.domain.tld 
-    Redirect 301 / https://sub.domain.tld 
-<VirtualHost> 
-<VirtualHost *:443> 
-    ServerName sub.domain.tld 
-    ServerAdmin you@domain.tld 
-    DocumentRoot /var/www/html/yoursite 
-     
-    SSLEngine on 
-    RedirectMatch ^/$ /yourapp/ # use this if backuppc is not the default app, or if you need to access another app on the same server 
-     
-    <Location "/yourapp/"> 
-          ProxyPass "http://host.yourdomain.tld/yourapp/" 
-          ProxyPassReverse "http://host.yourdomain.tld/yourapp/" 
-          Require all granted 
-    </Location> 
-     
-    # add other options such as Files and Directory permissions 
-     
-    Include /etc/letsencrypt/options-ssl-apache.conf 
-    SSLCertificateFile /etc/letsencrypt/live/sub.domain.tld/fullchain.pem 
-    SSLCertificateKeyFile /etc/letsencrypt/live/sub.domain.tld/privkey.pem 
-</VirtualHost> 
-</code> 
  
 ===== Links ===== ===== Links =====