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 on
SSLCertificateFile /etc/letsencrypt/live/example.com/fullchain.crt
SSLCertificateKeyFile /etc/letsencrypt/live/example.com/privkey.pem
DocumentRoot /var/www/html/something
<Directory /var/www/html>
AllowOverride All
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
`
I also added the same config parameters to
/etc/apache2/apache2.conf
Any help is appreciated.
Hey everyone,
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 on
SSLCertificateFile /etc/letsencrypt/live/example.com/fullchain.crt
SSLCertificateKeyFile /etc/letsencrypt/live/example.com/privkey.pem
DocumentRoot /var/www/html/something
<Directory /var/www/html>
AllowOverride All
Anjelo Ivanov is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.