Hello experts,
I've a working grav blog hosted on AWS Linux as you can see by visiting http://54.227.171.31. There are two problems:
1 - Internal URLs are unreachable
The site is located in the documentRoot /var/www/html.
Rewrite module is enabled, .htaccess has Rewritebase '/' command enabled. (I've tried with it disabled too.)
user/config/system.yaml:
home:
alias: /blog
hide_in_urls: true
user/config/site.yaml:
blog:
route: ''
user/pages/01.blog/blog.md
blog_url: '/'
2 - Browsers are unable to resolve the URL
There is an A record pointing to the server.
$ nslookup awsm.dvlprz.com
Server: 8.8.8.8
Address: 8.8.8.8#53
Non-authoritative answer:
Name: awsm.dvlprz.com
Address: 54.227.171.31
$ host awsm.dvlprz.com
awsm.dvlprz.com has address 54.227.171.31
awsm.dvlprz.com mail is handled by 1 redirect.ovh.net.
Apache is configured with virtual host for both :80 and :443
<VirtualHost *:80>
DocumentRoot "/var/www/html"
ServerName "awsm.dvlprz.com"
ServerAlias "awsm.dvlprz.com"
RewriteEngine on
RewriteCond %{SERVER_NAME} =awsm.dvlprz.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
<VirtualHost *:443>
DocumentRoot "/var/www/html"
ServerName "awsm.dvlprz.com"
ServerAlias "awsm.dvlprz.com"
SSLCertificateFile /etc/letsencrypt/live/awsm.dvlprz.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/awsm.dvlprz.com/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>