Hello.
I try to move my ghost installation from nginx to apache2 but I recived a 301-Moved Permanently response from the web server and my ghost web site is not accessible.
my virtualhost is the following
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName my_full_url
ServerAdmin myçfull_email
DocumentRoot /var/www/myghost_website/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
ProxyPreserveHost on
ProxyPass / http://localhost:2368/
ProxyPassReverse / http://localhost:2368/
<proxy *>
Order deny,allow
Allow from all
</proxy>
# SSL Engine Switch:
SSLEngine on
SSLCertificateFile /home/www-ghost/ghost_certs/myghost_website.crt
SSLCertificateKeyFile /home/www-ghost/ghost_certs/myghost_website.key
</VirtualHost>
</IfModule>
If I try a simple [curl -I localhost:2368] from the server, I have the following answer
HTTP/1.1 301 Moved Permanently
X-Powered-By: Express
Cache-Control: public, max-age=31536000
Location: https://localhost:2368/
Vary: Accept, Accept-Encoding
Content-Type: text/plain; charset=utf-8
Content-Length: 57
Date: Sun, 13 Feb 2022 18:02:12 GMT
Connection: keep-alive
Keep-Alive: timeout=5
The [301 Moved Permanently] seems to be wrong
Any idea ?
Thanks
VGR