Help configuring apache virtual host for Seafile

I installed Seafile on Ubuntu 16.04 for personal home use. I followed this guide and everything works smoothly. However, I need help properly configuring the Apache virtual host for HTTP and HTTPS.

I do NOT have a domain name, so I will always access Seafile server using IP of the server. What I want is to be able to access Seafile by going to http://192.168.1.xxx/seafile.

I followed the guide, Config Seahub with Apache, however, the virtual host configuration causes the Seafile interface to show up whenever I go to http://192.168.1.xxx/. I only want Seafile interface to show up when I go to http://192.168.1.xxx/seafile.

Below is the exact configuration I am using. Note how I have commented out “ServerName”. This reason for this is because if my router changes the IP of the server, I don’t have to come back and update the virtual host file.

<VirtualHost *:80>
    # ServerName www.myseafile.com
    # Use "DocumentRoot /var/www/html" for Centos/Fedora
    # Use "DocumentRoot /var/www" for Ubuntu/Debian
    DocumentRoot /var/www
    Alias /media  /home/user/haiwen/seafile-server-latest/seahub/media

    RewriteEngine On

    <Location /media>
        Require all granted
    </Location>

    #
    # seafile fileserver
    #
    ProxyPass /seafhttp http://127.0.0.1:8082
    ProxyPassReverse /seafhttp http://127.0.0.1:8082
    RewriteRule ^/seafhttp - [QSA,L]

    #
    # seahub
    #
    SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
    ProxyPass / http://127.0.0.1:8000/
    ProxyPassReverse / http://127.0.0.1:8000/
</VirtualHost>

Also I have one more question. Do I always have to change the SERVICE_URL and FILE_SERVER_ROOT settings if the IP address of the server changes? For example a scenario when the server IP address is 192.168.1.125, but later it may get changed to “192.168.1.132”.