Newbie here. I have Apache installed on Ubuntu hosted on AWS Lightsail.
I deployed SSL with Let's Encrypt for my domain and now my domain is being resolved to the subdirectory where my Apache server is hosted. Ideally I want my Apache server to be reachable at
https://example.com/something
but instead is being resolved at
https://example.com
The location for my server is /var/www/html/something/
and my config file looks like this:
<VirtualHost *:443> ServerName https://example.com/something SSLEngine onSSLCertificateFile /etc/letsencrypt/live/example.com/fullchain.pemSSLCertificateKeyFile/etc/letsencrypt/live/example.com/privkey.pemDocumentRoot/var/www/html/something<Directory /var/www/html> AllowOverride All</Directory>ErrorLog ${APACHE_LOG_DIR}/error.logCustomLog ${APACHE_LOG_DIR}/access.log combined</VirtualHost>
I also added the same config parameters to /etc/apache2/apache2.conf
.