Outils pour utilisateurs

Outils du site


gnu-linux:reseau:apache

Apache

Activer/désactiver une configuration

a2ensite example.conf
a2dissite example.conf

Exemples de configurations

Jellyfin

sudo a2enmod rewrite proxy proxy_http
nano /etc/apache2/sites-available/jellyfin.conf
<VirtualHost *:80>
        ServerName jellyfin.SITE.org
        ServerAlias jellyfin.SITE.org
        ProxyPreserveHost On
        ProxyRequests off
        ProxyPass "/socket" "ws://127.0.0.1:8096/socket"
        ProxyPassReverse "/socket" "ws://127.0.0.1:8096/socket"
        ProxyPass "/" "http://127.0.0.1:8096/"
        ProxyPassReverse "/" "http://127.0.0.1:8096/"
        ErrorLog "/var/log/apache2/error-jellyfin.log"
        CustomLog "/var/log/apache2/acces-jellyfin.log" combined
</VirtualHost>
sudo a2ensite jellyfin.conf
sudo service apache2 restart

Transmission

sudo a2enmod rewrite proxy proxy_http
nano /etc/apache2/sites-available/transmission.conf
<VirtualHost *:80>
        ServerName torrent.SITE.org
        ServerAlias torrent.SITE.org
        Redirect / /transmission
        ProxyPreserveHost On
        ProxyRequests off
        ProxyPass /transmission http://127.0.0.1:9091/transmission
        ProxyPassReverse /transmission http://127.0.0.1:9091/transmission
        ErrorLog "/var/log/apache2/error-transmission.log"
        CustomLog "/var/log/apache2/acces-transmission.log" combined
</VirtualHost>
sudo a2ensite transmission.conf
sudo service apache2 restart

Références

gnu-linux/reseau/apache.txt · Dernière modification : 2024/11/04 19:15 de jocker