Server now shows Apache "its works" page instead of dashboard


after I installed and did some stuff the server seem to be working if i do server ip/rutorrent it loads and its running
but when I go to server ip which should show the dashboard, it now shows the famous apache its working page

this did not happen out of the box it happened after trying to install lets encrypt certificate, I probably messed up something along the way, is there a way to fix this without having to reinstall the OS and quickbox?


you’ve probably missed the last step:

sed -i "s|DocumentRoot /var/www/html|DocumentRoot /srv/rutorrent/home/|g" /etc/apache2/sites-enabled/000-default-le-ssl.conf && service apache2 restart


I love you! that was it :smile:

1 Like

I did exactly the same thing first time I built mine. :grinning:

If you’re interested in making automatically forward to you can edit the following:

sudo nano /etc/apache2/sites-enabled/default-ssl.conf

scroll down until you find:

<VirtualHost *:80>

go to the bottom of that section, just above:

insert the following lines, replacing with your letsencrypt domain

RewriteEngine on
RewriteCond %{SERVER_NAME}
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]

the whole virtualhost sectoin should look something like this, remember to leave <VirtualHost *:443> alone :slight_smile:

<VirtualHost *:80>
        DocumentRoot "/srv/rutorrent/home"
        <Directory "/srv/rutorrent/home/">
                Options Indexes FollowSymLinks
                AllowOverride All AuthConfig
                Order allow,deny
                Allow from all
        AuthType Digest
        AuthName "rutorrent"
        AuthUserFile '/etc/htpasswd'
        Require valid-user
SCGIMount /user
RewriteEngine on
RewriteCond %{SERVER_NAME}
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]

Thank you very much!

I have a small question, in %{SERVER_NAME}

do I just leave it as it is, or does it mean server IP or something else?


Leave that one the same. It’s only you need to change :slight_smile: