User Tools

Site Tools


apps:lightmeter

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
apps:lightmeter [2020-12-01 10:39] Manuel Freiapps:lightmeter [2020-12-02 10:25] (current) Manuel Frei
Line 53: Line 53:
 systemctl daemon-reload systemctl daemon-reload
 systemctl start lightmeter.service systemctl start lightmeter.service
 +</code>
 +
 +<code>
 +vim /etc/apache2/sites-available/lightmeter.example.com.conf
 +</code>
 +
 +<code>
 +<VirtualHost *:80>
 +    ServerName lightmeter.example.com
 +    ServerAdmin hostmaster@example.com
 +    Redirect "/" "https://lightmeter.example.com/"
 +
 +    ErrorLog ${APACHE_LOG_DIR}/lightmeter.example.com-error.log
 +    LogLevel warn
 +    CustomLog ${APACHE_LOG_DIR}/lightmeter.example.com-access.log combined
 +</VirtualHost>
 +
 +<VirtualHost *:443>
 +    ServerName lightmeter.example.com
 +    ServerAdmin hostmaster@example.com
 +
 +    SSLEngine on
 +    SSLCertificateFile      /etc/dehydrated/certs/example.com/fullchain.pem
 +    SSLCertificateKeyFile   /etc/dehydrated/certs/example.com/privkey.pem
 +
 +    <Location "/.well-known/acme-challenge/">
 +        Allow From All
 +        Satisfy Any
 +    </Location>
 +
 +    ProxyPassMatch ^/.well-known !
 +    ProxyPass "/" "http://127.0.0.1:8085/"
 +    ProxyPassReverse "/" "http://127.0.0.1:8085/"
 +
 +    ErrorLog ${APACHE_LOG_DIR}/lightmeter.example.com-error.log
 +    LogLevel warn
 +    CustomLog ${APACHE_LOG_DIR}/lightmeter.example.com-access.log combined
 +</VirtualHost>
 +</code>
 +
 +<code>
 +a2ensite lightmeter.example.com
 +apachectl graceful
 </code> </code>
apps/lightmeter.1606815578.txt.gz · Last modified: 2020-12-01 10:39 by Manuel Frei