<VirtualHost *:8080> ServerName localhost DocumentRoot "/var/www/html/" <Directory "/var/www/html/"> Options All AllowOverride All Require all granted </Directory> CustomLog /proc/self/fd/1 combined ErrorLog /proc/self/fd/2 # This lets certain DAV methods work behind an SSL reverse proxy. RequestHeader edit Destination ^https http early </VirtualHost>