Posted onIntutorialViews: Word count in article: 1.6kReading time ≈1 mins.
As I installed Nextcloud before, I have changed my web server from Nginx to Apache2. So I need to re-deploy my lsky, which is my image sharing webpage as these two web server can not be used in the same time as far as I know.
RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] </VirtualHost>
<VirtualHost *:443> ServerName your.domain # Comment below SSL setting before you get the SSL cerficate, and uncomment these after get the certificate SSLEngine on SSLCertificateFile /etc/letsencrypt/live/your.domain/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/your.domain/privkey.pem
ProxyPass / http://127.0.0.1:8089/ ProxyPassReverse / http://127.0.0.1:8089/ # Set the maximum allowed size for the client request body LimitRequestBody 1024000000 # Headers to pass to the backend server #RequestHeader set Host $host This line is not needed, or it will occur 404 error RequestHeader set X-Real-IP $remote_addr RequestHeader set X-Forwarded-For $proxy_add_x_forwarded_for RequestHeader set REMOTE-HOST $remote_addr RequestHeader set X-Forwarded-Proto https