Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
deb11:apache [2023/01/16 19:58] – [Proxy] 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 ==== +
-  * [[https://serverfault.com/questions/486042/use-apache-as-a-https-to-http-proxy|Use apache as a HTTPS to HTTP Proxy]] +
-  * [[https://httpd.apache.org/docs/2.4/howto/reverse_proxy.html|Reverse Proxy Guide]] +
-  * [[https://www.jamescoyle.net/how-to/116-simple-apache-reverse-proxy-example|Simple Apache reverse proxy example]] +
-  * [[https://serverfault.com/questions/1024091/two-apache-servers-on-same-machine-with-same-port|Two apache servers on same machine with same port]] +
-  * [[https://stackoverflow.com/questions/16959839/how-we-can-run-two-instance-of-apache-http-server-on-same-machine-windows-7#answers|How we can run two instance of Apache Http Server on same machine]]+
 ===== Links ===== ===== Links =====
   * [[https://www.itzgeek.com/how-tos/linux/debian/how-to-install-php-7-3-7-2-7-1-on-debian-10-debian-9-debian-8.html|How To Install PHP 7.4 / 7.3 / 7.2 / 7.1 on Debian 10 / Debian 9]]   * [[https://www.itzgeek.com/how-tos/linux/debian/how-to-install-php-7-3-7-2-7-1-on-debian-10-debian-9-debian-8.html|How To Install PHP 7.4 / 7.3 / 7.2 / 7.1 on Debian 10 / Debian 9]]