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
deb11:apache [2023/01/16 19:58] – [Proxy] Bernard Condraudeb11:apache [2023/01/16 19:59] (current) Bernard Condrau
Line 117: Line 117:
 icacls X:\FULL_PATH_TO_FOLDER /grant Administrators:F icacls X:\FULL_PATH_TO_FOLDER /grant Administrators:F
 icacls X:\FULL_PATH_TO_FOLDER /grant Administrators:F /t</code> icacls X:\FULL_PATH_TO_FOLDER /grant Administrators:F /t</code>
- 
  
 ==== Links ==== ==== Links ====
Line 125: Line 124:
   * [[https://webmasters.stackexchange.com/questions/126557/what-is-the-difference-of-certbot-and-certbot-auto|What is the difference of certbot and certbot-auto?]]   * [[https://webmasters.stackexchange.com/questions/126557/what-is-the-difference-of-certbot-and-certbot-auto|What is the difference of certbot and certbot-auto?]]
   * [[https://www.jesusamieiro.com/remove-revoke-a-domain-in-lets-encrypt/|Remove a domain in Let’s Encrypt]]   * [[https://www.jesusamieiro.com/remove-revoke-a-domain-in-lets-encrypt/|Remove a domain in Let’s Encrypt]]
 +
 ===== SSL for localhost ===== ===== SSL for localhost =====
 ==== Ignore invalid certificates ==== ==== Ignore invalid certificates ====
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]]